Skip to content

Instantly share code, notes, and snippets.

@mmaassen
Created December 10, 2013 11:19
Show Gist options
  • Save mmaassen/7889129 to your computer and use it in GitHub Desktop.
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
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