Skip to content

Instantly share code, notes, and snippets.

@jamtur01
Last active December 10, 2015 07:28
Show Gist options
  • Save jamtur01/4401487 to your computer and use it in GitHub Desktop.
Save jamtur01/4401487 to your computer and use it in GitHub Desktop.
multiline weirdness
# matches and merges events like:
# Dec 28, 2012 8:11:53 PM jenkins.InitReactorRunner$1 onAttained
multiline {
type => "tomcat"
pattern => "(^\w{3}\s\d{2}\,\s\d{4}\s[0-9|:]+\s\w{2}\s)"
what => "next"
}
# matches stack traces
multiline {
type => "tomcat"
pattern => "(^\d+\serror)|(^.+Exception: .+)|(^\s+at .+)|(^\s+... \d+ more)|(^\s*Caused by:.+)"
what => "previous"
exclude_tags => [ "multiline" ]
add_tag => [ "stacktrace" ]
add_field => [ "stacktrace", "true" ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment