# Index name doesn't reset every day

**URL:** <https://discuss.elastic.co/t/index-name-doesnt-reset-every-day/273315>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [May 18, 2021, 3:54pm UTC](https://discuss.elastic.co/t/index-name-doesnt-reset-every-day/273315 "2021-05-18T15:54:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Downer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/downer/32/65179_2.png) [@Downer](https://discuss.elastic.co/u/Downer)\
**Post date:** [May 18, 2021, 3:54pm UTC](https://discuss.elastic.co/t/index-name-doesnt-reset-every-day/273315/1 "2021-05-18T15:54:37Z")

</div>

Hello,

I have an index named "metricbeat-7.10.1-2021.04.18-000324" but tomorrow it will be "metricbeat-7.10.1-2021.04.19-000325". The date math working perfectly but the indice (325) keep growing and don't reset every day.  
How can I make it reset every day to have something like "metricbeat-7.10.1-2021.04.19-000001" ??

Lucas

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 19, 2021, 1:08am UTC](https://discuss.elastic.co/t/index-name-doesnt-reset-every-day/273315/2 "2021-05-19T01:08:47Z")

</div>

> [@Downer](#):
>
> The date math working perfectly but the indice (325) keep growing and don't reset every day.

That counter is what increments, that's how [ILM](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-lifecycle-management.html) is designed to work 🙂

---

<div class="post-metadata">

**Author:** ![Downer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/downer/32/65179_2.png) [@Downer](https://discuss.elastic.co/u/Downer)\
**Post date:** [May 19, 2021, 7:31am UTC](https://discuss.elastic.co/t/index-name-doesnt-reset-every-day/273315/3 "2021-05-19T07:31:44Z")

</div>

Ok, I will look again on ILM. I have ILM policy but I have forgot something I think.

---

<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:** [June 16, 2021, 7:32am UTC](https://discuss.elastic.co/t/index-name-doesnt-reset-every-day/273315/4 "2021-06-16T07:32:02Z")

</div>

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