# Why aren't my indexes being managed by ILM?

**URL:** <https://discuss.elastic.co/t/why-arent-my-indexes-being-managed-by-ilm/206600>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [November 5, 2019, 12:03pm UTC](https://discuss.elastic.co/t/why-arent-my-indexes-being-managed-by-ilm/206600 "2019-11-05T12:03:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethrbunny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethrbunny/32/34603_2.png) [@ethrbunny](https://discuss.elastic.co/u/ethrbunny)\
**Post date:** [November 5, 2019, 12:04pm UTC](https://discuss.elastic.co/t/why-arent-my-indexes-being-managed-by-ilm/206600/1 "2019-11-05T12:04:00Z")

</div>

I have an index for packetbeat. Needless to say, this pulls down lots of data so Im wanting to

a) roll it over often  
b) delete it after 12 hours

It isn't doing either activity and Im struggling to understand why.

```
GET packetbeat-000003/_ilm/explain
{
  "indices" : {
    "packetbeat-000003" : {
      "index" : "packetbeat-000003",
      "managed" : true,
      "policy" : "packetbeat-rollover"
    }
  }
}

GET _ilm/policy
"packetbeat-rollover" : {
    "version" : 2,
    "modified_date" : "2019-11-05T11:55:49.497Z",
    "policy" : {
      "phases" : {
        "hot" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_size" : "20gb",
              "max_age" : "3h"
            },
            "set_priority" : {
              "priority" : 100
            }
          }
        },
        "delete" : {
          "min_age" : "12h",
          "actions" : {
            "delete" : { }
          }
        }
      }
    }
  },

```

Im able to make it rollover via curl but that's not the desired process.

Any idea how to make this work?

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [November 7, 2019, 4:22pm UTC](https://discuss.elastic.co/t/why-arent-my-indexes-being-managed-by-ilm/206600/2 "2019-11-07T16:22:59Z")

</div>

Hi ethrbunny,

What version of ES are you running? If you do a:

```auto
POST /<index>/_ilm/remove

```

And then:

```auto
PUT /<index>/_settings
{
  "index.lifecycle.name": "packetbeat-rollover"
}

```

Does the ILM explain output change at all?

---

<div class="post-metadata">

**Author:** ![ethrbunny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethrbunny/32/34603_2.png) [@ethrbunny](https://discuss.elastic.co/u/ethrbunny)\
**Post date:** [November 17, 2019, 2:10pm UTC](https://discuss.elastic.co/t/why-arent-my-indexes-being-managed-by-ilm/206600/3 "2019-11-17T14:10:37Z")

</div>

After deleting / rebuilding this index multiple times I think its working. It's fussy about the order of events (index, template, ILM, etc)

---

<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:** [December 15, 2019, 2:10pm UTC](https://discuss.elastic.co/t/why-arent-my-indexes-being-managed-by-ilm/206600/4 "2019-12-15T14:10:39Z")

</div>

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