I have installed Logstash on Ubuntu Server 14. Where can I find the default grok patterns that Logstash uses when filtering logs ? Thanks.
I have also installed ELK stack on Ubuntu 14.04. The location of patterns that grok uses is in the following directory
/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-patterns-core-2.0.5/patterns/
which includes the following default patterns
aws firewalls junos mongodb rails
bacula grok-patterns linux-syslog nagios redis
bro haproxy mcollective output.txt ruby
exim java mcollective-patterns postgresql test.sh
Or you can just search for the patterns as follows:
This will show you the directory of patterns you are looking for.
From the grok documentation:
Logstash ships with about 120 patterns by default. You can find them here:
https://github.com/logstash-plugins/logstash-patterns-core/tree/master/patterns.
If you know the logstash installation path, say cd /usr/share/logstash/
it is here:
cd /vendor/bundle/jruby/2.3.0/gems/logstash-patterns-core-4.1.2/patterns/
If installed via apt-get, to /usr/share/logstash/
it is here:
/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-patterns-core-4.1.2/patterns/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With