Created
June 6, 2013 21:14
-
-
Save tsudot/5725014 to your computer and use it in GitHub Desktop.
Logstash file input
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 { | |
| 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