# Elasticsearch index life cycle name rollover

**URL:** <https://discuss.elastic.co/t/elasticsearch-index-life-cycle-name-rollover/278544>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [July 13, 2021, 1:17pm UTC](https://discuss.elastic.co/t/elasticsearch-index-life-cycle-name-rollover/278544 "2021-07-13T13:17:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![opentokix](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/opentokix/32/90638_2.png) [@opentokix](https://discuss.elastic.co/u/opentokix)\
**Post date:** [July 13, 2021, 1:17pm UTC](https://discuss.elastic.co/t/elasticsearch-index-life-cycle-name-rollover/278544/1 "2021-07-13T13:17:58Z")

</div>

When I configure ILM it will create an index with 000001, what happens when you roll over for 999999? Will it just start over again, and no worries. Only reason it's a large number is to make sure it's not the same twice?

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [July 13, 2021, 2:59pm UTC](https://discuss.elastic.co/t/elasticsearch-index-life-cycle-name-rollover/278544/2 "2021-07-13T14:59:16Z")

</div>

Hi Peter,

There's no arbitrary limit, after `index-999999` the next one will be `index-1000000` and so on, internally it's an integer, so it can go up to 2147483647 indices. (I suppose we could change that to a long so it can go up to 9223372036854775807 indices, but even as an int overflowing would take a very long time.)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 10, 2021, 2:59pm UTC](https://discuss.elastic.co/t/elasticsearch-index-life-cycle-name-rollover/278544/3 "2021-08-10T14:59:23Z")

</div>

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