Change default date format via Logstash to store in ES


#1

I have some data being ingested via Logstash where a specific date field is stored as below in ES:
"MyDate": "2018-01-17T10:11:59.982Z

I would like to store this date in ES , as a date field in format as follows:
"MyDate": "2018/01/17 10:11:59.982"

Is it possible to do this, in a away that it will be recognized as a date field?


(Paris Mermigkas) #2

You can format that field accordingly in Logstash and define a custom date format for that field in ElasticSearch.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.