Created
December 10, 2013 11:19
-
-
Save mmaassen/7889129 to your computer and use it in GitHub Desktop.
Logstash filter to add a tag if a stack trace is found in the message
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
filter { | |
grep { | |
match => [ "message", "(^.+Exception: .+)|(^\s+at .+)|(^at .+)|(^\s+... \d+ more)|(^\s*Caused by:.+)|(^Caused by:.+)" ] | |
add_tag => [ "has_stacktrace" ] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment