hi,
I am trying to to build an ingest pipeline using grok processor
my grok filter works on the Kibana->console .
grok filter
^%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}.%{LOGLEVEL:log-level} : \[%{DATA:user}] \[%{DATA:correlation-id}]
2020-11-12 19:01:26.999 INFO : [http-nio-9090-exec-34] [xyz.b227ecf2-b770-468e-bb27-3a2c9e3d97b0]
but when i use the same one in
POST _ingest/pipeline/_simulate
{
"pipeline": {
"description" : "parse multiple patterns",
"processors": [
{
"grok": {
"field": "message",
"patterns": [" ^%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}.%{LOGLEVEL:log-level} : \[%{DATA:user}] \[%{DATA:correlation-id}]"]
}
}
]
},
"docs":[
{
"_source": {
"message": "2020-11-12 19:01:26.999 INFO : [http-nio-9090-exec-34] [xyz.b227ecf2-b770-468e-bb27-3a2c9e3d97b0]"
}
}
]
}
The problem seems to be \ in the grok filter. Not sure why.
Appreciate any suggestions or pointers.
Thanks