Hi,
I have am ingest pipeline that set within Elasticsearch ingest node, that takes the message field from a log file and splits it out.
During this I pull out the date which looks fine when it hits the document, but the index pattern is setting it as a string and not a date. is the a way I can get it to set as a date?
[
{
"grok": {
"field": "message",
"patterns": [
"%{YUMTIMESTAMP:yum.date} %{NOTSPACE:yum.state} %{NOTSPACE:yum.package}"
],
"pattern_definitions": {
"YUMTIMESTAMP": "%{MONTH} +%{MONTHDAY} %{TIME}"
},
"description": "Yum entry"
}
},
{
"date": {
"field": "yum.date",
"formats": [
"MMM dd HH:mm:ss"
],
"target_field": "yum.datetime"
}
}
]
that matches the pattern of indices like