I am trying to parse a multiline log file as shown below.
This is the processor that I have currently configured for the multiline log file.
[
{
"grok": {
"field": "message",
"patterns": [
"%{GREEDYMULTILINE}%{ROW_TITLE}%{GREEDYDATA:name}"
],
"pattern_definitions": {
"GREEDYMULTILINE": "(.|\n)*",
"ROW_TITLE": "name: "
},
"description": "extracts name from message"
}
},
{
"grok": {
"field": "message",
"patterns": [
"%{GREEDYMULTILINE}%{ROW_TITLE}%{GREEDYDATA:txt}"
],
"pattern_definitions": {
"GREEDYMULTILINE": "(.|\n)*",
"ROW_TITLE": "txt: "
}
}
}
]
The pipeline tries to process the log file that is aggregated from the custom log integration plug-in. However, I get an error saying that the Grok expressions does not match field value. I have tried to test the pipeline with same message via console and is successful. Is there something that I'm doing wrong that can be done differently? Is the issue coming from the log file itself?