I created a pipeline called parse_duration
:
{
"description" : "ParseDuration",
"processors": [
{
"grok": {
"field": "Duration",
"patterns": ["%{NUMBER:DrillDuration}"]
}
}
]
}
I simulated posting some dummy data while invoking the pipeline:
{
"docs": [
{
"_source": {
"Duration": "4.13"
}
}
]
}
This was the response message:
{
"docs": [
{
"doc": {
"_index": "_index",
"_type": "_doc",
"_id": "_id",
"_source": {
"DrillDuration": "4.13",
"Duration": "4.13"
},
"_ingest": {
"timestamp": "2019-05-08T08:13:35.339Z"
}
}
}
]
}
When I posted some actual data and loaded them into Kibana, DrillDuration
is considered to be a string value:
I want DrillDuration
to be a decimal or a double. How should I fix my pipeline definition to achieve this?