Rollover API not incrementing time based indices

Hey all. I am on ES 5.1.1 and I am trying to use the _rollover api. I have an index test-2017.05.18-1 with an alias test-w. When calling the rollover api with max_age 0d, my new index associated with the test-w alias is test-2017.05.18-000002. The doc here (https://www.elastic.co/guide/en/elasticsearch/reference/5.1/indices-rollover-index.html) seems to indicate that date math should be applied as well, to create an index test-2017.05.19-000002, but that doesn't seem to be the case.

Am I misunderstanding the doc, or am I doing something incorrectly?

The end number will increment, not the date part.

In the docs its says this though -> "Rolls over to a new index with today’s date, e.g. logs-2016.10.31-000002 if run immediately, or logs-2016.11.01-000002 if run after 24 hours"

@theuntergeek So are the docs wrong? Or is this a bug?

Opened an issue: https://github.com/elastic/elasticsearch/issues/24803

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