I have an issue with the Index Rotation. My Graylog server automatically create a new Indice every day (Index rotation). But sometimes, the creation date entered in Elasticsearch is not correct. The date entered goes back several months before the real date of creation. This is not systematic, but it has happened several days in a row lately. This really bothers me because I use this date to take snapshots of the indexes.
Expected Behavior
The date display by this API request should look like this : curl -X GET 'my-elastic.server.com:9200/_cat/indices?h=i,cds'
[...]
graylog_120 ... 2022-02-16T00:00:03.168Z
graylog_121 ... 2022-02-17T00:00:01.124Z
graylog_122 ... 2022-02-18T00:00:04.020Z
graylog_123 ... 2022-02-19T00:00:01.236Z
graylog_124 ... 2022-02-20T00:00:01.937Z
graylog_125 ... 2022-02-21T00:00:02.432Z
graylog_126 ... 2022-02-22T00:00:01.796Z
graylog_127 ... 2022-02-23T00:00:01.874Z
Current Behavior
They actually look like this :
graylog_120 ... 2021-11-10T08:36:50.168Z
graylog_121 ... 2021-11-10T08:36:51.124Z
graylog_122 ... 2021-11-10T08:36:51.020Z
graylog_123 ... 2021-11-10T08:36:50.236Z
graylog_124 ... 2021-11-10T08:36:50.937Z
graylog_125 ... 2022-02-21T09:19:38.432Z
graylog_126 ... 2021-11-10T08:36:47.796Z
graylog_127 ... 2022-02-21T09:19:43.874Z
Also, I noticed that the date was often the same, at very close times : 2021-11-10T08:36:XX.xxxZ
I use this creation date to make a snapshot of the indice created the day before. I use a script which do API request to do the snapshot, and then, I use third-party software to store it somewehre else.
Manual index rotation seems to work, but I'm not 100% sure.
There also seems to be the same problem with the snapshot creation date, which I use for monitoring.
Ok, I understand. So what does it mean ? I suppose the request is sent every days, at midnight, so what is wrong.
Also, I invented the "Expected behavior" output from the few real results I got in the previous months. Here are some real output examples of correct creation date :
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.