Skip to content

Instantly share code, notes, and snippets.

@mrcustard
Created December 19, 2013 19:52
Show Gist options
  • Save mrcustard/8045138 to your computer and use it in GitHub Desktop.
Save mrcustard/8045138 to your computer and use it in GitHub Desktop.
logstash config
input {
syslog {
type => "syslog"
port => "514"
format => "plain"
}
file {
type => "syslog"
path => ['/var/log/syslog']
exclude => "*.gz"
}
}
filter {
if [type] == "syslog" {
grok {
type => "syslog"
add_tag => ["syslog"]
match => ["message", "%{SYSLOGLINE}"]
}
}
}
output {
stdout {
debug => true
debug_format => "json"
}
elasticsearch {
node_name => "logstash-prod-1"
host => "x.x.x.x"
cluster => "appops_logging"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment