I just noticed another logstash index logstash-217.06.03 appeared again, though the timestamp for log record is created correctly and shows todays date 2017.06.02
I updated output in logstash.conf but that didn't fix the problem:
I just noticed Docker container time is 5 hours ahead from server time but the date is still 2017.06.02.
How can I sync container time with server time?
Another observation is that all logs with timestamp after 17:00:00 indexed with timestamp of the next day - logstash-2017.06.03
I just figured out Logstash created date for my log record in UTC timezone:
Today is still 2017-06-04 but Logstash created date value for 2017-06-05 - for UTC timezone I guess.
Moreover, the _index has date 2017.06.06 even 2 day ahead.
I checked Logstash container time and shows correct date of the current time zone, though ES container shows date in UTC time zone.
Is there any way to fix the value of variable logTimestamp?
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.