Created
December 19, 2013 19:52
-
-
Save mrcustard/8045138 to your computer and use it in GitHub Desktop.
logstash config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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