# ILM alias errors - illegal\_argument\_exception: index.lifecycle.rollover\_alias

**URL:** <https://discuss.elastic.co/t/ilm-alias-errors-illegal-argument-exception-index-lifecycle-rollover-alias/313167>\
**Category:** Elasticsearch\
**Created:** [August 29, 2022, 1:25pm UTC](https://discuss.elastic.co/t/ilm-alias-errors-illegal-argument-exception-index-lifecycle-rollover-alias/313167 "2022-08-29T13:25:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vee/32/55759_2.png) [@vee](https://discuss.elastic.co/u/vee)\
**Post date:** [August 29, 2022, 1:25pm UTC](https://discuss.elastic.co/t/ilm-alias-errors-illegal-argument-exception-index-lifecycle-rollover-alias/313167/1 "2022-08-29T13:25:19Z")

</div>

Hi, am seeing this issue even though I believe the seed index was created with the correct write index:

illegal\_argument\_exception: index.lifecycle.rollover\_alias [test-logs] does not point to index [test-logs-2022.08.17]

I'm trying to fix the issue without having to delete the indexes and red- the whole thing again. Here are the definitions used:

```auto
#GET _template/test-logs_template
{
  "test-logs_template" : {
    "order" : 100,
    "index_patterns" : [
      "test-logs-*"
    ],
    "settings" : {
      "index" : {
        "lifecycle" : {
          "name" : "test_ILM_Policy",
          "rollover_alias" : "test-logs"
        },
        "routing" : {
          "allocation" : {
            "require" : {
              "box_type" : "hot"
            }
          }
        },
        "number_of_shards" : "1",
        "number_of_replicas" : "1"
      }
    },
    "mappings" : { },
    "aliases" : { }
  }
}
#GET _alias/test-logs
{
  "test-logs-2022.08.17-000006" : {
    "aliases" : {
      "test-logs" : {
        "is_write_index" : false
      }
    }
  },
  "test-logs-2022.08.03-000004" : {
    "aliases" : {
      "test-logs" : {
        "is_write_index" : false
      }
    }
  },
  "test-logs-2022.07.27-000003" : {
    "aliases" : {
      "test-logs" : {
        "is_write_index" : false
      }
    }
  },
  "test-logs-2022.08.10-000005" : {
    "aliases" : {
      "test-logs" : {
        "is_write_index" : false
      }
    }
  },
  "test-logs-2022.08.24-000007" : {
    "aliases" : {
      "test-logs" : {
        "is_write_index" : true
      }
    }
  }
}
#Seed index definition
PUT /%3Ctest-logs-%7Bnow%2Fd%7D-1%3E
{
    "aliases": {
    "test-logs": {
      "is_write_index": true
    }
  }
}
#Logstash output section
output {
    elasticsearch
    {
        hosts => ["es-test1:9200" , "es-test2:9200"]
        ilm_enabled => true
        ssl => true
        cacert => "path to .crt"
        ssl_certificate_verification => true
        user => logstash_user
        password => "${logstash.user.password}"
        sniffing => false
        manage_template => false
        index => "test-logs-%{+YYYY.MM.dd}"

    }
}

```

Thanks for your time!

---

<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 29, 2022, 11:39pm UTC](https://discuss.elastic.co/t/ilm-alias-errors-illegal-argument-exception-index-lifecycle-rollover-alias/313167/2 "2022-08-29T23:39:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vee/32/55759_2.png) [@vee](https://discuss.elastic.co/u/vee)\
**Post date:** [August 30, 2022, 4:31pm UTC](https://discuss.elastic.co/t/ilm-alias-errors-illegal-argument-exception-index-lifecycle-rollover-alias/313167/3 "2022-08-30T16:31:46Z")

</div>

Unfortunately, I couldn't pin point what the issue is. I do see the alias name defined in the index as it's baked into the template definition.

```auto
{
  "test-logs-2022.08.30" : {
    "settings" : {
      "index" : {
        "lifecycle" : {
          "name" : "test_ILM_Policy",
          "rollover_alias" : "test-logs"
        },
        "routing" : {
          "allocation" : {
            "require" : {
              "box_type" : "hot"
            }
          }
        },
        "refresh_interval" : "10s",
        "number_of_shards" : "1",
        "provided_name" : "test-logs-2022.08.30",
        "creation_date" : "1661871466525",
        "priority" : "100",
        "number_of_replicas" : "1",
        "uuid" : "mTKcQtrYRGG8ivMuhCX0RQ",
        "version" : {
          "created" : "7160399"
        }
      }
    }
  }
}

```

---

<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 27, 2022, 4:32pm UTC](https://discuss.elastic.co/t/ilm-alias-errors-illegal-argument-exception-index-lifecycle-rollover-alias/313167/4 "2022-09-27T16:32:40Z")

</div>

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