Skip to content

Instantly share code, notes, and snippets.

@lbjay
Last active August 29, 2015 14:22
Show Gist options
  • Save lbjay/98a62625f9a5570f8c15 to your computer and use it in GitHub Desktop.
Save lbjay/98a62625f9a5570f8c15 to your computer and use it in GitHub Desktop.
apache-elk-in-five-minutes logstash.conf
input {
tcp {
port => 3333
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
}
date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
}
output {
stdout {
codec => rubydebug
}
elasticsearch {
embedded => ES_EMBEDDED
host => "ES_HOST"
port => "ES_PORT"
protocol => "http"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment