# How update ILM for exist indexes after changes steps ILM policy?

**URL:** <https://discuss.elastic.co/t/how-update-ilm-for-exist-indexes-after-changes-steps-ilm-policy/279471>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [July 23, 2021, 10:54am UTC](https://discuss.elastic.co/t/how-update-ilm-for-exist-indexes-after-changes-steps-ilm-policy/279471 "2021-07-23T10:54:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zakabluk](https://avatars.discourse-cdn.com/v4/letter/z/8baadc/32.png) [@zakabluk](https://discuss.elastic.co/u/zakabluk)\
**Post date:** [July 23, 2021, 10:54am UTC](https://discuss.elastic.co/t/how-update-ilm-for-exist-indexes-after-changes-steps-ilm-policy/279471/1 "2021-07-23T10:54:28Z")

</div>

Hi! I Use ELK 7.13.3. I was updated my cluster from 7.9.3 for fixet bug with datastream [deliting](https://github.com/elastic/elasticsearch/pull/69637).  
I have datastream which storing 7/14/30/60 days. I was change ILM policy and removed rollover step. Now I have only delete step.

```auto
PUT _ilm/policy/delete-after-7days
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "set_priority": {
            "priority": 100
          }
        }
      },
      "delete": {
        "min_age": "7d",
        "actions": {
          "delete": {
            "delete_searchable_snapshot": true
          }

```

and I faced with error for all my indexes which was create before last changes ILM.

```auto
Suppressed: java.lang.IllegalArgumentException: step [{\"phase\":\"hot\",\"action\":\"rollover\",\"name\":\"attempt-rollover\"}] for index [.ds-logstash-cdn-nginx-2021.07.16-2021.07.16-000001] with policy [delete-after-7days] does not exist",
"\tat org.elasticsearch.xpack.ilm.IndexLifecycleTransition.validateTransition(IndexLifecycleTransition.java:85) ~[?:?]",

```

ILM doesn't work for all old indexes and didn't clear old logs.  
Why this happen and could i fix this situation?

---

<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:** [August 20, 2021, 10:55am UTC](https://discuss.elastic.co/t/how-update-ilm-for-exist-indexes-after-changes-steps-ilm-policy/279471/2 "2021-08-20T10:55:07Z")

</div>

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