# Index lifecycle management not working. automatic reverting of policy

**URL:** https://discuss.elastic.co/t/index-lifecycle-management-not-working-automatic-reverting-of-policy/279509
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [July 23, 2021, 5:49pm UTC](https://discuss.elastic.co/t/index-lifecycle-management-not-working-automatic-reverting-of-policy/279509 "2021-07-23T17:49:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mw77](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@mw77](https://discuss.elastic.co/u/mw77)
#### Post date: [July 23, 2021, 5:49pm UTC](https://discuss.elastic.co/t/index-lifecycle-management-not-working-automatic-reverting-of-policy/279509/1 "2021-07-23T17:49:11Z")

</div>

Hi Guys,  
I am reposting this.  
I have create a ILM policy which has around 90 indices attached to it.  
from the UI I have created a policy and below is the request when I click on show request.  
I am enabling the delete phase after rollover from hot phase, enabled warm phase for 7 days and then finally enabling delete phase for min 7 days.  
All the task is performed from the UI.  
problem : the policy stays for a day and when I see the next day warm phase and delete phase are disabled. I keep enabling it from the UI, but in a day or two it keeps reverting the policy back and disables the warm and delete phase. any help is appreciated.

```auto
PUT _ilm/policy/bananatree
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "rollover": {
            "max_age": "30d",
            "max_size": "150gb"
          },
          "set_priority": {
            "priority": 100
          }
        }
      },
      "warm": {
        "actions": {}
      },
      "delete": {
        "min_age": "7d",
        "actions": {
          "delete": {}
        }
      }
    }
  }
}

```

---

<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: [July 26, 2021, 12:20am UTC](https://discuss.elastic.co/t/index-lifecycle-management-not-working-automatic-reverting-of-policy/279509/2 "2021-07-26T00:20:14Z")

</div>

What version are you on?

Can you show us a screenshot of it disabled and then re-enabled?  
Is there anything in the logs that refer to the policy?

---

<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: [July 26, 2021, 12:22am UTC](https://discuss.elastic.co/t/index-lifecycle-management-not-working-automatic-reverting-of-policy/279509/3 "2021-07-26T00:22:10Z")

</div>

Ahh I see [ILM policy keeps reverting - disabling delete phase](https://discuss.elastic.co/t/ilm-policy-keeps-reverting-disabling-delete-phase/279317).

Please don't repost an existing question in future 🙂

---

<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: [July 26, 2021, 12:22am UTC](https://discuss.elastic.co/t/index-lifecycle-management-not-working-automatic-reverting-of-policy/279509/4 "2021-07-26T00:22:13Z")

</div>


