Skip to content

Instantly share code, notes, and snippets.

@scottwillson
Created August 7, 2014 18:29
Show Gist options
  • Save scottwillson/e3d6f79811b80f353c00 to your computer and use it in GitHub Desktop.
Save scottwillson/e3d6f79811b80f353c00 to your computer and use it in GitHub Desktop.
input {
file {
type => "rails logs"
path => "/Users/sw/devel/racing_on_rails/log/logstash_development.log"
codec => json {
charset => "UTF-8"
}
}
}
output {
# Print each event to stdout.
stdout {
codec => rubydebug
}
elasticsearch {
# Setting 'embedded' will run a real elasticsearch server inside logstash.
# This option below saves you from having to run a separate process just
# for ElasticSearch, so you can get started quicker!
embedded => true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment