# Index is not moving to warm phase

**URL:** <https://discuss.elastic.co/t/index-is-not-moving-to-warm-phase/325677>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [February 16, 2023, 2:55am UTC](https://discuss.elastic.co/t/index-is-not-moving-to-warm-phase/325677 "2023-02-16T02:55:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul\_sirugudi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_sirugudi/32/94019_2.png) [@rahul\_sirugudi](https://discuss.elastic.co/u/rahul_sirugudi)\
**Post date:** [February 16, 2023, 2:55am UTC](https://discuss.elastic.co/t/index-is-not-moving-to-warm-phase/325677/1 "2023-02-16T02:55:10Z")

</div>

I have an index, i have implemented ILM on that. I am not seeing index is not moving to warm phase after reaching out 8 days old. There are no errors to.

```auto
{
  "emailer-lifecycle-policy" : {
    "version" : 1,
    "modified_date" : "2023-02-06T05:24:39.945Z",
    "policy" : {
      "phases" : {
        "warm" : {
          "min_age" : "8d",
          "actions" : {
            "set_priority" : {
              "priority" : 50
            }
          }
        },
        "cold" : {
          "min_age" : "60d",
          "actions" : {
            "allocate" : {
              "number_of_replicas" : 0,
              "include" : { },
              "exclude" : { },
              "require" : { }
            },
            "set_priority" : {
              "priority" : 0
            }
          }
        },
        "hot" : {
          "min_age" : "0ms",
          "actions" : {
            "set_priority" : {
              "priority" : 100
            },
            "rollover" : {
              "max_age" : "7d"
            }
          }
        },
        "delete" : {
          "min_age" : "90d",
          "actions" : {
            "delete" : {
              "delete_searchable_snapshot" : true
            }
          }
        }
      }
    },
    "in_use_by" : {
      "indices" : [
        "emailer-logs-2023.02.06-000001",
        "emailer-logs-2023.02.06-000002"
      ],
      "data_streams" : [],
      "composable_templates" : [
        "emailer-index-template"
      ]
    }
  }
}

```

This is the policy. Index got created on 6th of this month so it has to reach to warm phase on 14th or 15th, but still i see data in in hot phase.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 16, 2023, 5:56am UTC](https://discuss.elastic.co/t/index-is-not-moving-to-warm-phase/325677/2 "2023-02-16T05:56:09Z")

</div>

Hi @rahul_sirugudi  
I think you are falling fir a common misconception.

ILM moving to warm is calculated from the rollover date.

So index created on 6th.  
Hot says rollover after 7days  
So index rolls over on 13th  
Warm says 8 days from rollover so that will be 13th + 8 days ..  
So around the 21st.

See here

> **[Tutorial: Automate rollover with ILM | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-index-lifecycle-management.html)**

> The min\_age value is relative to the rollover time, not the index creation time

You can also use the `_ilm/explain` API to get a better explanation of what it's going on.

> **[Explain lifecycle API | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html)**

---

<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 16, 2023, 5:56am UTC](https://discuss.elastic.co/t/index-is-not-moving-to-warm-phase/325677/3 "2023-03-16T05:56:39Z")

</div>

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