Skip to content

Instantly share code, notes, and snippets.

@jeffmess
Created June 7, 2016 15:25
Show Gist options
  • Save jeffmess/00a7956e2d1f3e0b080156aecb0d6f30 to your computer and use it in GitHub Desktop.
Save jeffmess/00a7956e2d1f3e0b080156aecb0d6f30 to your computer and use it in GitHub Desktop.
I, [2016-06-07T15:25:12.644074 #1] INFO -- : {"method":"GET","path":"/documentation/1.0.html","format":"html","controller":"apipie/apipies","action":"index","status":200,"duration":295.64,"view":100.37,"db":0.0,"@timestamp":"2016-06-07T15:25:12.641Z","@version":"1","message":"[200] GET /documentation/1.0.html (apipie/apipies#index)"}
input {
file {
path => "/logs/development.log"
}
}
filter{
grok {
match => { "message" => "%{RUBY_LOGGER}" }
}
}
output {
elasticsearch {
hosts => "elasticsearch:9200"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment