Skip to content

Instantly share code, notes, and snippets.

@abhishekraj2506
Last active June 28, 2018 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhishekraj2506/3ba1ef301bc874acfe053bf50407b144 to your computer and use it in GitHub Desktop.
Save abhishekraj2506/3ba1ef301bc874acfe053bf50407b144 to your computer and use it in GitHub Desktop.
{
"description": "Parsing the application logs",
"processors": [
{
"grok": {
"field": "message",
"patterns": [
"\\[%{TIMESTAMP_ISO8601:timestamp}\\] \\[%{DATA:thread}\\] %{LOGLEVEL:level} %{GREEDYDATA:class} - %{GREEDYMULTILINE:stackTrace}"
],
"pattern_definitions": {
"GREEDYMULTILINE": "(.|\n)*"
},
"ignore_missing": true
}
},
{
"remove": {
"field": "message"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment