# Index rollover is not happening

**URL:** <https://discuss.elastic.co/t/index-rollover-is-not-happening/240645>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [July 10, 2020, 5:10am UTC](https://discuss.elastic.co/t/index-rollover-is-not-happening/240645 "2020-07-10T05:10:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bivaswap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bivaswap/32/47121_2.png) [@bivaswap](https://discuss.elastic.co/u/bivaswap)\
**Post date:** [July 10, 2020, 5:10am UTC](https://discuss.elastic.co/t/index-rollover-is-not-happening/240645/1 "2020-07-10T05:10:52Z")

</div>

I have 4 node cluster (3 master eligible+data, 1 coordinating node)

Logstash output

```
output {
  elasticsearch {
    hosts => ["es-node-01.xyz.local:9200", "es-node-02.xyz.local:9200", "es-node-03.xyz.local:9200"]
    ilm_rollover_alias => "aws"
    ilm_policy => "aws-ilm-policy"
    template => "/etc/logstash/aws-beats.conf.d/aws.json"
    template_name => "aws"
    template_overwrite => true
    user => "${ES_USER}"
    password => "${ES_PWD}"
  }
}

GET aws-2020.06.24-000001/_ilm/explain
{
  "indices" : {
    "aws-2020.06.24-000001" : {
      "index" : "aws-2020.06.24-000001",
      "managed" : true,
      "policy" : "aws-ilm-policy",
      "lifecycle_date_millis" : 1592996386205,
      "age" : "15.75d",
      "phase" : "hot",
      "phase_time_millis" : 1592996386331,
      "action" : "rollover",
      "action_time_millis" : 1592996695435,
      "step" : "check-rollover-ready",
      "step_time_millis" : 1592996695435,
      "phase_execution" : {
        "policy" : "aws-ilm-policy",
        "phase_definition" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_size" : "25gb",
              "max_age" : "30d"
            },
            "set_priority" : {
              "priority" : 100
            }
          }
        },
        "version" : 1,
        "modified_date_in_millis" : 1591798442850
      }
    }
  }
}

GET _ilm/status
{
  "operation_mode" : "RUNNING"
}

GET _alias/aws
{
  "aws-2020.06.24-000001" : {
    "aliases" : {
      "aws" : {
        "is_write_index" : true
      }
    }
  }
}

GET /_cluster/settings
{
  "persistent" : {
    "indices" : {
      "lifecycle" : {
        "poll_interval" : "10m"
      }
    },
    "xpack" : {
      "monitoring" : {
        "collection" : {
          "enabled" : "true"
        }
      }
    }
  },
  "transient" : { }
}

```

Everything looks normal, but still index is not rolling over/splitting.  
Can anyone help me with that ?

---

<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:** [July 17, 2020, 11:19pm UTC](https://discuss.elastic.co/t/index-rollover-is-not-happening/240645/2 "2020-07-17T23:19:14Z")

</div>

The rollover date that's being used is cached in the `phase_definition`, you can see:

```auto
        "phase_definition" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_size" : "25gb",
              "max_age" : "30d"
            },
            "set_priority" : {
              "priority" : 100
            }
          }
        },

```

That the `max_age` is 30 days, however, the index is only 15.75 days old. If you are expecting it to roll over from size, keep in mind that the 25gb is the _primary_ shard combined sizes, not the entire index size. Perhaps you can share the size of the index?

---

<div class="post-metadata">

**Author:** ![bivaswap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bivaswap/32/47121_2.png) [@bivaswap](https://discuss.elastic.co/u/bivaswap)\
**Post date:** [July 18, 2020, 2:18am UTC](https://discuss.elastic.co/t/index-rollover-is-not-happening/240645/3 "2020-07-18T02:18:00Z")

</div>

Yes,  
I misunderstood the indices size.  
It consider pri.store.size, not store.size.

Index rolled over, everything going good.

---

<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 15, 2020, 2:18am UTC](https://discuss.elastic.co/t/index-rollover-is-not-happening/240645/4 "2020-08-15T02:18:10Z")

</div>

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