# IML for daily indices - how?

**URL:** <https://discuss.elastic.co/t/iml-for-daily-indices-how/227311>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [April 9, 2020, 12:04pm UTC](https://discuss.elastic.co/t/iml-for-daily-indices-how/227311 "2020-04-09T12:04:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohlik](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@Rohlik](https://discuss.elastic.co/u/Rohlik)\
**Post date:** [April 9, 2020, 12:04pm UTC](https://discuss.elastic.co/t/iml-for-daily-indices-how/227311/1 "2020-04-09T12:04:17Z")

</div>

Hello gyus,  
how properly setup index lifecycle management in Elastic stack 7.6 if using daily indices?  
I found this docs - [https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-index-lifecycle-management.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-index-lifecycle-management.html) but it seems that this is not for daily indices.  
I basically want create IML policy for hot-warm architecture.  
PS: I already have node attributes set.

---

<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:** [April 13, 2020, 10:13pm UTC](https://discuss.elastic.co/t/iml-for-daily-indices-how/227311/2 "2020-04-13T22:13:14Z")

</div>

The rollover criteria can have a `max_age` parameter, which you could set to 1 day if you ILM to automatically do the rollover. If you're planning on rolling over from the client side, you can use a policy that has no rollover action at all.

I would caution you though, that daily indices are a pattern that you should try to get away from, instead favoring indices based on size rather than time period.

---

<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:** [May 11, 2020, 10:27pm UTC](https://discuss.elastic.co/t/iml-for-daily-indices-how/227311/3 "2020-05-11T22:27:13Z")

</div>

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