Custom patterns_dir for all groks?

:male_detective: I have multiple grok filters but I point all of them to a single patterns_dir like below. :male_detective:

  grok { patterns_dir => ["/usr/share/logstash/patterns" ] }
  grok { patterns_dir => ["/usr/share/logstash/patterns" ] }

If I move all my custom patterns into

/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-patterns-core-4.1.2/patterns/

then I don't have to declare any patterns_dir.

Can I define a custom patterns_dir once in logstash that all groks will get?
I would rather keep my patterns separate from the core patterns_dir but don't want to define the same location over and over again.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.