I am loading a csv file into elasticsearch using logstash. I used the date filter plugin to convert my date column to date type in my config file :
date {
match => ["DAY", "M/d/yyyy", "M/dd/yyyy", "MM/d/yyyy", "MM/dd/yyyy"]
target => "DAY"
locale => "en"
}
every date indexed appears a day earlier then my data for example , 2018-10-2 is appearing 2018-10-1
All timestamps in Elasticsearch are stored in UTC timezone. The date filter will assume the dates/timestamps are in the local timezone by default (you can override this) and convert them top 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.