I want to process logs separated by pipe '|' operator in an ingress pipeline using grok. How can I ignore this character in the pattern?
Log data:
PUT /combined/_doc/1?pipeline=pipeline_combined_logs
{
"service": "ise7085|19524"
}
Pattern:
{
"grok": {
"field": "service",
"patterns": "%{DATA:user}\|%{DATA:pid}"
}
}
}
Above pattern throw error
"Unrecognized character escape '|'
Thanks!!!