Hi:
I need to have a new index every day with the myindex + datetime (myindex-YYYY.MM.DD).
I created an index with initial name myindex-2020.09.01-000001.
index_body = {
"aliases": {
"myindex": {
"is_write_index": True
}
}
}
During the same day on 2020.09.01, I executed the rollover api
POST /myindex/_rollover
{
"conditions": {
"max_docs": "1"
}
}
A new index was correctly added as myindex-2020.09.01-000002
However on 2020.09.02, the next day, I expected the new rollover index to be named myindex-2020.09.02-000003. But what I noticed is that the newly created rollover index is named myindex-2020.09.01-000003. The date part of the index name does not correctly match th date when the api was executed.
I am on Elastic 7.6.1.
I need help in fixing this rollover alias with date problem.
Thanks in advance for any help.