I am currently running logstash-2.1.1 . While using grok patterns, I am not able to get the built-in logstash patterns for grok (like SPACE, NOTSPACE etc by default). As a result I had to download all the patterns into a directory and add the patterns_dir construct in every grok filter, which makes my config really long.
Is there a way to put all the grok patterns into any logstash directory so that the grok filter will pick them up by default instead of me having to define explicitly the patterns_dir in every grok construct ?
If you place your pattern files in the same directory as the standard pattern files things will work, but probably only until the logstash-patterns-core package is updated. If you specify patterns_dir Logstash should look both there and in the standard location. If that doesn't work, try enabling verbose log output with --verbose or even --debug to get additional clues about what's going on. Logstash will log all loaded patterns.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.