# Index lifecycle error

**URL:** https://discuss.elastic.co/t/index-lifecycle-error/171254
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [March 7, 2019, 8:49am UTC](https://discuss.elastic.co/t/index-lifecycle-error/171254 "2019-03-07T08:49:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hsam](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hsam](https://discuss.elastic.co/u/hsam)
#### Post date: [March 7, 2019, 8:49am UTC](https://discuss.elastic.co/t/index-lifecycle-error/171254/1 "2019-03-07T08:49:20Z")

</div>

Can you help me using kibana ilm error ?

I don't get the meaning of this error:

```
illegal_argument_exception: index.lifecycle.rollover_alias [metricbeat-6.6.0-alias] does not point to index [metricbeat-6.6.0-2019.03.06]

```

settings:

```
{
  "index.blocks.read_only_allow_delete": "false",
  "index.priority": "1",
  "index.query.default_field": [
    "*"
  ],
  "index.write.wait_for_active_shards": "1",
  "index.lifecycle.name": "metricbeat-6.6.0-",
  "index.lifecycle.rollover_alias": "metricbeat-6.6.0-alias",
  "index.mapping.total_fields.limit": "10000",
  "index.refresh_interval": "5s",
  "index.number_of_replicas": "1"
}
 {
  "policy": "metricbeat-6.6.0-",
  "phase_definition": {
    "min_age": "0ms",
    "actions": {
      "rollover": {
        "max_size": "1gb",
        "max_age": "1d"
      }
    }
  },
  "version": 8,
  "modified_date_in_millis": 1551878230967
}

```

explain:

```
GET metricbeat-6.6.0-*/_ilm/explain -->
"indices" : {
    "metricbeat-6.6.0-2019.03.07" : {
      "index" : "metricbeat-6.6.0-2019.03.07",
      "managed" : true,
      "policy" : "metricbeat-6.6.0-",
      "lifecycle_date_millis" : 1551913203940,
      "phase" : "hot",
      "phase_time_millis" : 1551947189334,
      "action" : "rollover",
      "action_time_millis" : 1551913204273,
      "step" : "ERROR",
      "step_time_millis" : 1551947663347,
      "failed_step" : "check-rollover-ready",
      "step_info" : {
        "type" : "illegal_argument_exception",
        "reason" : "index.lifecycle.rollover_alias [metricbeat-6.6.0-alias] does not point to index [metricbeat-6.6.0-2019.03.07]",
        "stack_trace" : """
java.lang.IllegalArgumentException: index.lifecycle.rollover_alias [metricbeat-6.6.0-alias] does not point to index [metricbeat-6.6.0-2019.03.07]
	at org.elasticsearch.xpack.core.indexlifecycle.WaitForRolloverReadyStep.evaluateCondition(WaitForRolloverReadyStep.java:92)
	at org.elasticsearch.xpack.indexlifecycle.IndexLifecycleRunner.runPeriodicStep(IndexLifecycleRunner.java:128)
	at org.elasticsearch.xpack.indexlifecycle.IndexLifecycleService.triggerPolicies(IndexLifecycleService.java:244)
	at org.elasticsearch.xpack.indexlifecycle.IndexLifecycleService.triggered(IndexLifecycleService.java:199)
	at org.elasticsearch.xpack.core.scheduler.SchedulerEngine.notifyListeners(SchedulerEngine.java:164)
	at org.elasticsearch.xpack.core.scheduler.SchedulerEngine$ActiveSchedule.run(SchedulerEngine.java:192)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)

"""
      },
```

---

<div class="post-metadata">

### Author: ![widhalmt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/widhalmt/32/8237_2.png) [@widhalmt](https://discuss.elastic.co/u/widhalmt)
#### Post date: [March 8, 2019, 5:12pm UTC](https://discuss.elastic.co/t/index-lifecycle-error/171254/2 "2019-03-08T17:12:03Z")

</div>

Hi,

I got the same problem and won't find anything helpful in the documentation. So maybe someone here can help us?

Cheers,  
Thomas

---

<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: [March 8, 2019, 5:39pm UTC](https://discuss.elastic.co/t/index-lifecycle-error/171254/3 "2019-03-08T17:39:20Z")

</div>

Hsam,

When you created the index, did you create it and the alias at the same time? Like so:

```
PUT metricbeat-6.6.0-00001
{
  "aliases": {
    "metricbeat-6.6.0-alias":{
      "is_write_index": true
    }
  }
}
```

---

<div class="post-metadata">

### Author: ![blaat](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@blaat](https://discuss.elastic.co/u/blaat)
#### Post date: [March 11, 2019, 12:43pm UTC](https://discuss.elastic.co/t/index-lifecycle-error/171254/4 "2019-03-11T12:43:01Z")

</div>

I have the same error. @dakrone the indices are being created by Metricbeat. The template does not contain an alias:

```
{
"metricbeat-6.6.0": {
    "order": 0,
    "index_patterns": [
        "metricbeat-6.6.0*"
    ],
    "settings": {
        "index": {
            "lifecycle": {
                "name": "Metricbeat"
            }
        }
    },
    "mappings": {},
    "aliases": {}
}

```

}

---

<div class="post-metadata">

### Author: ![hsam](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hsam](https://discuss.elastic.co/u/hsam)
#### Post date: [March 11, 2019, 2:07pm UTC](https://discuss.elastic.co/t/index-lifecycle-error/171254/5 "2019-03-11T14:07:18Z")

</div>

> [@dakrone](#):
>
> it and the alias at the same time? Like so:

Hello, thanks for responding.  
No alias is created, those are generated via metricbeat and goes immedialty to elasticsearch (no logstash). When adding it manually, i can indeed see it with no error in the ILM. But i would like to have it done automatically cause i have 1 index per day.

---

<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: [March 11, 2019, 5:29pm UTC](https://discuss.elastic.co/t/index-lifecycle-error/171254/6 "2019-03-11T17:29:34Z")

</div>

> [@hsam](#):
>
> When adding it manually, i can indeed see it with no error in the ILM. But i would like to have it done automatically cause i have 1 index per day.

The alias only has to be created once manually. After that the rollover API takes care of updating it.

Can you share more about your setup? It sounds like Metricbeat needs to know it should create that alias the first time the very first index is created so that you don't have to manually add it later. If it ends up not doing that, I think that's a bug in Metricbeat so an issue should be opened.

---

<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: [April 8, 2019, 5:29pm UTC](https://discuss.elastic.co/t/index-lifecycle-error/171254/7 "2019-04-08T17:29:40Z")

</div>

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