Skip to content

Instantly share code, notes, and snippets.

@tsudot
Created June 6, 2013 21:14
Show Gist options
  • Save tsudot/5725014 to your computer and use it in GitHub Desktop.
Save tsudot/5725014 to your computer and use it in GitHub Desktop.
Logstash file input
input {
file {
path => ["/var/log/account.log"]
format => "plain"
type => "syslog"
}
}
filter {
grok {
type => "syslog"
pattern => "%{TIMESTAMP_ISO8601:timestamp} %{WORD:auth_id} %{SYSLOGPROG:prog} - %{LOGLEVEL:log_level}: %{GREEDYDATA:message}"
}
}
output {
stdout { debug => true debug_format => "json"}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment