Skip to content

Instantly share code, notes, and snippets.

@jeffmess
Created June 7, 2016 18:46
Show Gist options
  • Save jeffmess/3c10822266bb25395823527a7b388cac to your computer and use it in GitHub Desktop.
Save jeffmess/3c10822266bb25395823527a7b388cac to your computer and use it in GitHub Desktop.
input {
file {
type => "ruby-logger"
path => "/logs/development.log"
}
}
filter{
if [type] == "ruby-logger" {
grok {
pattern => "[DFEWI], \[%{TIMESTAMP_ISO8601:timestamp} #%{POSINT:pid}\] *%{RUBY_LOGLEVEL:loglevel} -- +%{DATA:progname}: %{GREEDYDATA:message}"
}
}
}
output {
elasticsearch {
hosts => "elasticsearch:9200"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment