Open jsvd opened 8 years ago
I have the same issue
This continues to be an issue for plugins that depend on logstash-filter-grok
because, while v2.0.4 has the fix, v2.0.4 was never pushed to RubyGems.
Just had this discussion with @elyscape on IRC about this: here's my assessment:
colinsurprenant: Elyscape: yeah, ok, I get it now… - outside the context of running logstash, pattern_path is underfined because it’s only part of the bootstrap. but pattern_path is only defined in the grok specs to have the test pass outside the logstash context but any other plugins depending on grok which covers the grok usage will also fail because pattern_parth is still undefined. [4:41pm]
so yeah, we need to either re-relocate pattern_path or having it correctly exposed to that any downstream plugins that depend on grok can run their specs which uses grok.
forgot to also add @markwalkom
I opened elastic/logstash#4928 for this
running the specs fail for
logstash-core >= 2.2
this happens because LogStash::Environment.pattern_path is not defined in logstash-core gem but instead in the boostrapping code