# What is the max id for rollover in index name

**URL:** <https://discuss.elastic.co/t/what-is-the-max-id-for-rollover-in-index-name/348802>\
**Category:** Elasticsearch\
**Created:** [December 7, 2023, 10:40am UTC](https://discuss.elastic.co/t/what-is-the-max-id-for-rollover-in-index-name/348802 "2023-12-07T10:40:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![avnere](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@avnere](https://discuss.elastic.co/u/avnere)\
**Post date:** [December 7, 2023, 10:40am UTC](https://discuss.elastic.co/t/what-is-the-max-id-for-rollover-in-index-name/348802/1 "2023-12-07T10:40:53Z")

</div>

Hi,

I have created index with rollover policy (with 9 digits: **000000001** ) :

```auto
PUT /<my-index-{now/d}-000000001>

```

After rollover it create the new index with 6 digits: **000002**

Is there a way to increase the number of digits to 9 instead 6?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 7, 2023, 11:36am UTC](https://discuss.elastic.co/t/what-is-the-max-id-for-rollover-in-index-name/348802/2 "2023-12-07T11:36:29Z")

</div>

How frequently is your index rolling over? If we assume you roll over once per hour, which is very frequent, 999999 indices will last you 114 years. Why would you need 9 digits?

---

<div class="post-metadata">

**Author:** ![avnere](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@avnere](https://discuss.elastic.co/u/avnere)\
**Post date:** [December 7, 2023, 2:42pm UTC](https://discuss.elastic.co/t/what-is-the-max-id-for-rollover-in-index-name/348802/3 "2023-12-07T14:42:29Z")

</div>

My rule is per 40GB max shard size.  
I am indexing more than 1TB per day.

Is it possible to increase it?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 7, 2023, 2:58pm UTC](https://discuss.elastic.co/t/what-is-the-max-id-for-rollover-in-index-name/348802/4 "2023-12-07T14:58:46Z")

</div>

If we assume the data translates into 1TB of primary indices per day, that is 25 indices per day. With 999999 indices that corresponds to 109 years. Note that you also can configure the indices to have more than 1 primary shard, which would let each index hold more than 40GB according to your rule.

I still do not understand why you think this is an issue.

> [@avnere](#):
>
> Is it possible to increase it?

I do not think it is.

---

<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:** [January 4, 2024, 2:59pm UTC](https://discuss.elastic.co/t/what-is-the-max-id-for-rollover-in-index-name/348802/5 "2024-01-04T14:59:16Z")

</div>

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