Skip to content

Instantly share code, notes, and snippets.

@romedawg
Created December 4, 2014 00:45
Show Gist options
  • Save romedawg/52000854327464464fa1 to your computer and use it in GitHub Desktop.
Save romedawg/52000854327464464fa1 to your computer and use it in GitHub Desktop.
logstash_config.conf
input {
file {
type => "nginx_access"
path => '/var/log/nginx/access.log'
}
file {
type => "nginx_errorr"
path => '/var/log/nginx/error.log'
}
}
output {
elasticsearch {
host => '192.168.0.13:9200'
}
stdout {
codec => rubydebug
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment