Skip to content

Instantly share code, notes, and snippets.

@renalexster
Created September 26, 2018 13:31
Show Gist options
  • Save renalexster/b73ad381095f020a62c96e91d3efc5e1 to your computer and use it in GitHub Desktop.
Save renalexster/b73ad381095f020a62c96e91d3efc5e1 to your computer and use it in GitHub Desktop.
Example pipeline using GROK - parser wildfly default log
put _ingest/pipeline/wildfly-pipeline-parser
{
"description": "Parse log lines",
"processors": [
{
"grok": {
"field": "message",
"patterns": [
"(?<data_wildfly>\\d+-\\d+-\\d+ \\d+:\\d+:\\d+,\\d+) +(?<severity>\\S+) +\\[(?<thread>[^:]+)\\] +\\((?<class>[^:]+)\\) (?<message>(.|\r|\n)*)",
"(?<message>.+)"
]
}
},
{
"date": {
"field": "data_wildfly",
"formats": [
"yyyy-MM-dd HH:mm:ss,SSS"
],
"timezone":"-0300"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment