Skip to content

Instantly share code, notes, and snippets.

@jumski
Created July 31, 2013 17:31
Show Gist options
  • Save jumski/6124199 to your computer and use it in GitHub Desktop.
Save jumski/6124199 to your computer and use it in GitHub Desktop.
# 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