# Error with ilm policy change for index

**URL:** https://discuss.elastic.co/t/error-with-ilm-policy-change-for-index/269703
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [April 9, 2021, 11:35am UTC](https://discuss.elastic.co/t/error-with-ilm-policy-change-for-index/269703 "2021-04-09T11:35:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![siiman](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@siiman](https://discuss.elastic.co/u/siiman)
#### Post date: [April 9, 2021, 11:35am UTC](https://discuss.elastic.co/t/error-with-ilm-policy-change-for-index/269703/1 "2021-04-09T11:35:26Z")

</div>

Hello,

I encountered a problem with index-index-livecycle-management in elasticseach v7.10.2.

I created an ilm policy named `zeek_cleanup` with rolling indices settings and applied it to some indices via dev-console. Unfortunately, I applied the wrong settings and removed them with the following command.

```auto
PUT rita-*/_settings 
{
  "index": { "lifecycle": { "name": null } }
}

```

After that, the command `GET rita-*/_ilm/explain` indicated that no ilm policies were applied to the index. As a result, I wrote a new policy (wit 'enable rollover' = False) named it `gc` and activated it for the index with the following command.

```auto
PUT rita-*/_settings 
{
  "index": { "lifecycle": { "name": "gc" } }
}

```

Now the policy name `"policy" : "gc",` is correct, but the `"phase_execution":` setting in the output of `GET rita-*/_ilm/explain ` shows the old policy.

Not sure if the problem is related to the previously enabled `rollover`, but I think rather less.  
I think there is a general problem in the ilm functionality. I hope someone can give me a hint for a solution or reproduce the problem. If the problem persists I would create a github issue.

thank you and greetings

---

<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 7, 2021, 11:36am UTC](https://discuss.elastic.co/t/error-with-ilm-policy-change-for-index/269703/2 "2021-05-07T11:36:24Z")

</div>

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