Skip to content

Instantly share code, notes, and snippets.

@tsudot
Created March 6, 2014 23:26
Show Gist options
  • Save tsudot/9401904 to your computer and use it in GitHub Desktop.
Save tsudot/9401904 to your computer and use it in GitHub Desktop.
input {
udp {
port => 5666
type => "syslog"
}
}
filter {
if [type] == "syslog" {
grok {
match => [ "message", "%{TIMESTAMP_ISO8601:timestamp} %{WORD:auth_id} %{SYSLOGPROG:prog} - %{LOGLEVEL:log_level}: %{GREEDYDATA:message}" ]
}
}
}
output {
elasticsearch_http {
host => "184.173.XX.XX"
port => "9300"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment