I have a date in the format 06/30/2016 00:21:49, I am trying to parse this date using
date { match => [ "time", "MM/dd/YYYY HH:mm:ss" ] }
But the date is still a string value. So how can I parse a date if it is not there in prewritten date pattern ??
Yes it will be as the date command is not changing your field By default it updates the @TIMESTAMP field
https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html#plugins-filters-date-target
Yeah ! What you said was right. I added target => "date-time" (date-time is my custom date field) and now it is working as expected.
target => "date-time"
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.