Created
March 24, 2014 17:51
-
-
Save expl0ratory/9745448 to your computer and use it in GitHub Desktop.
This file contains 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 { | |
stdin { | |
codec => multiline { | |
pattern => "^%{DATESTAMP} " | |
negate => true | |
what => "previous" | |
} | |
} | |
} | |
filter { | |
# stuff-log filters | |
grok { | |
match => [ "message", "%{DATESTAMP:timestamp} \[%{NUMBER:pid}\] \[%{WORD:log_level}\] %{DATA:module}: %{GREEDYDATA:log_message}" ] | |
} | |
date { | |
match => [ "timestamp", "yyyy-MM-dd HH:mm:ss,SSS" ] | |
} | |
} | |
output { | |
stdout { codec => rubydebug } | |
} |
Author
expl0ratory
commented
Mar 24, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment