# Index is not getting rolled over

**URL:** <https://discuss.elastic.co/t/index-is-not-getting-rolled-over/312124>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [August 15, 2022, 7:51pm UTC](https://discuss.elastic.co/t/index-is-not-getting-rolled-over/312124 "2022-08-15T19:51:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harper\_S1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harper_s1/32/103430_2.png) [@Harper\_S1](https://discuss.elastic.co/u/Harper_S1)\
**Post date:** [August 15, 2022, 7:51pm UTC](https://discuss.elastic.co/t/index-is-not-getting-rolled-over/312124/1 "2022-08-15T19:51:35Z")

</div>

Hi,  
I have installed the ELK 8.2 but seems rollover is not working well. index size reached to 2+ Tb.

when I tried to rollover using command line

```auto
POST some-index-name/_rollover
{
  "conditions": {
    "max_age": "30d",
    "max_size": "200gb"
  }
}

```

It gave the following error

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "rollover target is a [concrete index] but one of [alias,data_stream] was expected"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "rollover target is a [concrete index] but one of [alias,data_stream] was expected"
  },
  "status" : 400
}

```

I tried the following as well

```auto
POST /_aliases
{
    "actions" : [
        { "add" : { "index" : "some-index-name-v1-000001", "alias" : "some-index-name" } }
    ]
}

```

but still error.

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "aliases_not_found_exception",
        "reason" : "aliases [some-index-name-v1-000001-0001] missing",
        "resource.type" : "aliases",
        "resource.id" : "some-index-name-v1-000001-0001"
      }
    ],
    "type" : "aliases_not_found_exception",
    "reason" : "aliases [some-index-name-v1-000001] missing",
    "resource.type" : "aliases",
    "resource.id" : "some-index-name-v1-000001"
  },
  "status" : 404
}

```

Could someone please help to understand what is wrong here.

Thanks!

---

<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:** [August 16, 2022, 12:37am UTC](https://discuss.elastic.co/t/index-is-not-getting-rolled-over/312124/2 "2022-08-16T00:37:04Z")

</div>

Can you share your entire ILM policy?

---

<div class="post-metadata">

**Author:** ![Harper\_S1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harper_s1/32/103430_2.png) [@Harper\_S1](https://discuss.elastic.co/u/Harper_S1)\
**Post date:** [August 16, 2022, 12:45am UTC](https://discuss.elastic.co/t/index-is-not-getting-rolled-over/312124/3 "2022-08-16T00:45:19Z")

</div>

Thanks for the reply. Here is the policy.

```auto
GET _ilm/policy/delete_30_days_rollover_indices

{
  "delete_30_days_rollover_indices" : {
    "version" : 9,
    "modified_date" : "2022-08-05T20:26:37.272Z",
    "policy" : {
      "phases" : {
        "hot" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_primary_shard_size" : "50gb",
              "max_age" : "30d"
            },
            "set_priority" : {
              "priority" : 97
            },
            "shrink" : {
              "number_of_shards" : 1
            }
          }
        },
        "delete" : {
          "min_age" : "30d",
          "actions" : {
            "delete" : {
              "delete_searchable_snapshot" : true
            }
          }
        }
      }
    },
    "in_use_by" : {
      "indices" : [
        "some-index-name",
        "some-index-name-proxy-msg",
        "some-index-name-msg-failed",
        ".ds-other-index-name-2022.07.31-000002",
        "some-index-name-v1-000001",
        ".ds-other-index-2022.07.24-000001"
      ],
      "data_streams" : [],
      "composable_templates" : []
    }
  }
}

```

---

<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:** [August 16, 2022, 12:47am UTC](https://discuss.elastic.co/t/index-is-not-getting-rolled-over/312124/4 "2022-08-16T00:47:57Z")

</div>

Can you run an explain on it as well? [Explain lifecycle API | Elasticsearch Guide [8.3] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/ilm-explain-lifecycle.html)

---

<div class="post-metadata">

**Author:** ![Harper\_S1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harper_s1/32/103430_2.png) [@Harper\_S1](https://discuss.elastic.co/u/Harper_S1)\
**Post date:** [August 16, 2022, 12:52am UTC](https://discuss.elastic.co/t/index-is-not-getting-rolled-over/312124/5 "2022-08-16T00:52:43Z")

</div>

```auto
GET some-index-name-v1-000001/_ilm/explain

{
  "indices" : {
    "some-index-name-v1-000001" : {
      "index" : "some-index-name-v1-000001",
      "managed" : true,
      "policy" : "delete_30_days_rollover_indices",
      "index_creation_date_millis" : 1660608388012,
      "time_since_index_creation" : "44.03m",
      "lifecycle_date_millis" : 1660608388012,
      "age" : "44.03m",
      "phase" : "hot",
      "phase_time_millis" : 1660609957226,
      "action" : "rollover",
      "action_time_millis" : 1660608388263,
      "step" : "ERROR",
      "step_time_millis" : 1660610557079,
      "failed_step" : "check-rollover-ready",
      "is_auto_retryable_error" : true,
      "failed_step_retry_count" : 1,
      "step_info" : {
        "type" : "illegal_argument_exception",
        "reason" : "index.lifecycle.rollover_alias [some-index-name] does not point to index [some-index-name-v1-000001]"
      },
      "phase_execution" : {
        "policy" : "delete_30_days_rollover_indices",
        "phase_definition" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_primary_shard_size" : "50gb",
              "max_age" : "30d"
            },
            "set_priority" : {
              "priority" : 97
            },
            "shrink" : {
              "number_of_shards" : 1
            }
          }
        },
        "version" : 9,
        "modified_date_in_millis" : 1659731197272
      }
    }
  }
}

```

---

<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:** [August 16, 2022, 1:42am UTC](https://discuss.elastic.co/t/index-is-not-getting-rolled-over/312124/6 "2022-08-16T01:42:51Z")

</div>

> [@Harper\_S1](#):
>
> ```auto
> "reason" : "index.lifecycle.rollover_alias [some-index-name] does not point to index [some-index-name-v1-000001]"
> 
> ```

Check out [Troubleshooting index lifecycle management errors | Elasticsearch Guide [8.3] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.3/index-lifecycle-error-handling.html#_index_lifecycle_rollover_alias_x_does_not_point_to_index_y)

---

<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:** [September 13, 2022, 1:43am UTC](https://discuss.elastic.co/t/index-is-not-getting-rolled-over/312124/7 "2022-09-13T01:43:45Z")

</div>

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