Index rotation

I would like to know if there is a way to rotate an index for a period of time. I have an app that writes to a fix ES index name and I need to to rotate the index lets say after one day "app-index-0001", the next day "app-index-0002" and so while mantaining the original app-index and after a week delete the old index. Could index rollover help me, or that is for another use case?
Basicaly I need to rotate my index to apply an ILM, so I can get rid of data of more than 1 week, and I cant change the index name on my app.

ILM is build just for this.

I finally used ILM with rollover.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.