# ILM question

**URL:** <https://discuss.elastic.co/t/ilm-question/298042>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [February 23, 2022, 1:33pm UTC](https://discuss.elastic.co/t/ilm-question/298042 "2022-02-23T13:33:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nunex\_17](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@nunex\_17](https://discuss.elastic.co/u/nunex_17)\
**Post date:** [February 23, 2022, 1:33pm UTC](https://discuss.elastic.co/t/ilm-question/298042/1 "2022-02-23T13:33:12Z")

</div>

Hi!

I'm new to this kind of solutions and, therefore, I need help trying to configure what I want.

I intend to rollover an index after 30 days. From my understanding, the cold phase is counted after the rollover date. Therefore, 1 day after the rollover, I want my rolled index to move into the cold phase.

Finally, data must be deleted 30 days after the rollover date. I assume that the oldest index is removed (because the data age is calculated from the rollover). This is my current configuration:

```auto
{
  "filebeat" : {
    "version" : 25,
    "modified_date" : "2022-02-23T12:57:51.335Z",
    "policy" : {
      "phases" : {
        "cold" : {
          "min_age" : "1d",
          "actions" : {
            "freeze" : { },
            "set_priority" : {
              "priority" : 0
            }
          }
        },
        "hot" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_age" : "30d"
            }
          }
        },
        "delete" : {
          "min_age" : "30d",
          "actions" : {
            "delete" : {
              "delete_searchable_snapshot" : true
            }
          }
        }
      }
    }
  }
}

```

This figure tries to explain what i want to achieve:

 ![index](https://us1.discourse-cdn.com/elastic/original/3X/7/3/73ab9a10f65d4a5ab1bd1fb3c893d877a52112ee.png)

---

<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:** [February 24, 2022, 1:23am UTC](https://discuss.elastic.co/t/ilm-question/298042/2 "2022-02-24T01:23:39Z")

</div>

What version of the Stack are you using here?

---

<div class="post-metadata">

**Author:** ![nunex\_17](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@nunex\_17](https://discuss.elastic.co/u/nunex_17)\
**Post date:** [February 24, 2022, 10:00am UTC](https://discuss.elastic.co/t/ilm-question/298042/3 "2022-02-24T10:00:33Z")

</div>

I am using version 7.13.4

---

<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:** [March 24, 2022, 10:01am UTC](https://discuss.elastic.co/t/ilm-question/298042/4 "2022-03-24T10:01:31Z")

</div>

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