Created
July 31, 2013 17:31
-
-
Save jumski/6124199 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set ft=puppet: | |
input { | |
file { | |
path => [ "/var/log/rails.log" ] | |
type => rails | |
format => plain | |
start_position => beginning | |
} | |
} | |
filter { | |
grok { | |
type => rails | |
patterns_dir => "/opt/logstash/patterns" | |
match => ["@message", "^Started"] | |
pattern => "%{RAILS_STARTED}" | |
} | |
} | |
output { | |
stdout { | |
debug => true | |
debug_format => json | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment