# Index Lifecycle Management

**URL:** <https://discuss.elastic.co/t/index-lifecycle-management/321411>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [December 16, 2022, 1:08pm UTC](https://discuss.elastic.co/t/index-lifecycle-management/321411 "2022-12-16T13:08:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pankhuri\_Gupta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pankhuri_gupta/32/102756_2.png) [@Pankhuri\_Gupta](https://discuss.elastic.co/u/Pankhuri_Gupta)\
**Post date:** [December 16, 2022, 1:08pm UTC](https://discuss.elastic.co/t/index-lifecycle-management/321411/1 "2022-12-16T13:08:24Z")

</div>

Hi Team,  
I am running a python script which is sending data to elasticsearch on daily basis and creates index datewise. I want to apply ILM policy of deletion for the indexes to be automatically deleted after 2days and I have already applied it on my index but it is showing an error( Index lifecycle error: illegal\_argument\_exception: setting [index.lifecycle.rollover\_alias] for index [project-details-2022-12-15] is empty or not defined.)

1. This is the screenshot of index being created datewise.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/8/d87360e20a1d25e3e94cef683adb31b0a2844849.png)
2. These are the screenshots of ILM policy I created step by step.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/d/ad0165f77630519ce5e50da94b64d75e0d3efcc0.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/3/b35c5f7d8ed74c8bba1c07e8756313a21b716860.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/7/f70b0d0a57fc35742776266ff107fc3dabf29e87.png)
3. This is the error due to which ILM is failing.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/4/c40bea83b458dc286773e6662e2bb237f56363b2.png)

Kindly support.  
Thanks,  
Pankhuri

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [December 16, 2022, 3:55pm UTC](https://discuss.elastic.co/t/index-lifecycle-management/321411/2 "2022-12-16T15:55:35Z")

</div>

If you are creating daily indices you do not need rollover, disable the rollover in your hot phase and it should work.

---

<div class="post-metadata">

**Author:** ![Pankhuri\_Gupta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pankhuri_gupta/32/102756_2.png) [@Pankhuri\_Gupta](https://discuss.elastic.co/u/Pankhuri_Gupta)\
**Post date:** [December 19, 2022, 5:01am UTC](https://discuss.elastic.co/t/index-lifecycle-management/321411/3 "2022-12-19T05:01:32Z")

</div>

Hi,  
Thanks it worked..

---

<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 16, 2023, 5:01am UTC](https://discuss.elastic.co/t/index-lifecycle-management/321411/4 "2023-01-16T05:01:50Z")

</div>

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