I am receiving epoch time as input and would like to persist this in the following format "yyyy/MM/dd HH:mm:ss.SSS" in Elasticsearch. I am performing the following at present in logstash
date {
match => ["mydate", "UNIX_MS"]
target => "mydate"
}
This persist's the date in the following format "2017-01-28T18:08:08.064Z" but i need the format to be "2017/01/28 18:08:08.064"
i was using a specific format in my kibana mapping. Once i removed this format in kibana and only specified the datatype to be date, i was able to persist the data to elasticsearch using logstash. The date field saved in elasticsearch happens to be of the default type (UTC) .
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.