# ILM policy not applied to all indices

**URL:** <https://discuss.elastic.co/t/ilm-policy-not-applied-to-all-indices/180050>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [May 7, 2019, 7:41pm UTC](https://discuss.elastic.co/t/ilm-policy-not-applied-to-all-indices/180050 "2019-05-07T19:41:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trondhindenes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trondhindenes/32/10534_2.png) [@trondhindenes](https://discuss.elastic.co/u/trondhindenes)\
**Post date:** [May 7, 2019, 7:41pm UTC](https://discuss.elastic.co/t/ilm-policy-not-applied-to-all-indices/180050/1 "2019-05-07T19:41:18Z")

</div>

Hi,  
I've created an ILM policy on our 6.7 cluster, and applied it "manually" to a number of indices by setting the `index_settings.index.lifecycle.name`

Now several hours later, only one of the indices seems to have "activated" the policy. Using the `/_ilm/explain` api, one index shows this:

```javascript
{
    "indices": {
        "myindex-2019.05": {
            "index": "myindex-2019.05",
            "managed": true,
            "policy": "myilmpolicy",
            "lifecycle_date_millis": 1556668803483,
            "phase": "hot",
            "phase_time_millis": 1557211550788,
            "action": "complete",
            "action_time_millis": 1557211550866,
            "step": "complete",
            "step_time_millis": 1557211550866,
            "phase_execution": {
                "policy": "myilmpolicy",
                "phase_definition": {
                    "min_age": "0ms",
                    "actions": {
                        "set_priority": {
                            "priority": 100
                        }
                    }
                },
                "version": 1,
                "modified_date_in_millis": 1557211418152
            }
        }
    }
}

```

However, all other indices shows this:

```javascript
{
    "indices": {
        "myindex-2019.04": {
            "index": "iis_log_prod-2019.04",
            "managed": true,
            "policy": "myilmpolicy"
        }
    }
}

```

I don't understand why only one of my indices has "activated" the hot phase defined in the policy.  
Are there any logs or anything I can look at to try and understand why this is happening?

---

<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:** [June 4, 2019, 7:41pm UTC](https://discuss.elastic.co/t/ilm-policy-not-applied-to-all-indices/180050/2 "2019-06-04T19:41:23Z")

</div>

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