Last active
December 20, 2015 17:19
-
-
Save cdenneen/6167467 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
filter { | |
mutate { | |
type => json | |
gsub => [ | |
"datetime", "[ \t]$", "", | |
"process", "[ \t]{2,}", "", | |
"area", "[ \t]{2,}", "", | |
"category", "[ \t]{2,}", "", | |
"level", "[ \t]{2,}", "" | |
] | |
} | |
multiline { | |
pattern => "\d\d\/\d\d\/\d\d\d\d \d\d\:\d\d\:\d\d\.\d\d\*" | |
what => previous | |
} | |
date { | |
match => [ "datetime", "MM/dd/YYYY HH:mm:ss.SS", "MM/dd/YYYY HH:mm:ss.SS*" ] | |
} | |
mutate { | |
type => json | |
rename => [ "message", "@message" ] | |
add_tag => "%{app}" | |
add_tag => "%{tags}" | |
} | |
mutate { | |
remove => [ "SourceModuleName", "SourceModuleType", "EventReceivedTime", "tags", "app", "datetime" ] | |
} | |
} |
Author
cdenneen
commented
Aug 6, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment