Hi there,
I'm having the following issue with the Grok Processor in ingest pipeline as defined:
PUT _ingest/pipeline/number-pipe
{
"processors" : [
{
"grok": {
"field": "message",
"patterns": [
"number: %{NUMBER:test-number}"
]
}
}
]
}
Running the following _simulate:
POST _ingest/pipeline/number-pipe/_simulate
{
"docs" : [
{
"_source": {
"message": "number: 1.234e12"
}
}
]
}
Result:
{
"docs": [
{
"doc": {
"_index": "_index",
"_type": "_type",
"_id": "_id",
"_source": {
"message": "number: 1.234e12",
"test-number": "1.234"
},
"_ingest": {
"timestamp": "2018-05-11T08:52:24.693Z"
}
}
}
]
}
Am I doing the right thing using NUMBER
as a grok pattern ?
Thanks