Created
September 26, 2018 13:31
-
-
Save renalexster/b73ad381095f020a62c96e91d3efc5e1 to your computer and use it in GitHub Desktop.
Example pipeline using GROK - parser wildfly default log
This file contains 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
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