# Index.lifecycle.rollover\_alias \[metricbeat\] does not point to index \[metricbeat-XXX\]

**URL:** <https://discuss.elastic.co/t/index-lifecycle-rollover-alias-metricbeat-does-not-point-to-index-metricbeat-xxx/260187>\
**Category:** Beats\
**Tags:** ilm-index-lifecycle-management, metricbeat\
**Created:** [January 5, 2021, 10:26am UTC](https://discuss.elastic.co/t/index-lifecycle-rollover-alias-metricbeat-does-not-point-to-index-metricbeat-xxx/260187 "2021-01-05T10:26:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![graimato](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@graimato](https://discuss.elastic.co/u/graimato)\
**Post date:** [January 5, 2021, 10:26am UTC](https://discuss.elastic.co/t/index-lifecycle-rollover-alias-metricbeat-does-not-point-to-index-metricbeat-xxx/260187/1 "2021-01-05T10:26:28Z")

</div>

Dear all,  
I have a problem with a rollover for a metric beat index.  
I created a ILM Policy I setup metric beat to send data as follow:

```auto
   setup.ilm.check_exists: false
   setup.ilm.overwrite: true
   setup.ilm.enabled: true
   setup.template.overwrite: true
   setup.ilm.pattern: "{now/d}-000001"
   setup.ilm.policy_name: "metricbeat-test"

```

`GET /metricbeat-*/_ilm/explain`

I have:

```auto
"metricbeat-7.9.0" : {
     "index" : "metricbeat-7.9.0",
     "managed" : true,
     "policy" : "metricbeat-test",
     "lifecycle_date_millis" : 1609840383887,
     "age" : "12.53m",
     "phase" : "hot",
     "phase_time_millis" : 1609840385090,
     "action" : "rollover",
     "action_time_millis" : 1609840468717,
     "step" : "ERROR",
     "step_time_millis" : 1609841067798,
     "failed_step" : "check-rollover-ready",
     "is_auto_retryable_error" : true,
     "step_info" : {
       "type" : "illegal_argument_exception",
       "reason" : "index.lifecycle.rollover_alias [metricbeat] does not point to index [metricbeat-7.9.0]",
       "stack_trace" : """java.lang.IllegalArgumentException: index.lifecycle.rollover_alias [metricbeat] does not point to index [metricbeat-7.9.0]
   at org.elasticsearch.xpack.core.ilm.WaitForRolloverReadyStep.evaluateCondition(WaitForRolloverReadyStep.java:114)
   at org.elasticsearch.xpack.ilm.IndexLifecycleRunner.runPeriodicStep(IndexLifecycleRunner.java:174)
   at org.elasticsearch.xpack.ilm.IndexLifecycleService.triggerPolicies(IndexLifecycleService.java:327)
   at org.elasticsearch.xpack.ilm.IndexLifecycleService.triggered(IndexLifecycleService.java:265)
   at org.elasticsearch.xpack.core.scheduler.SchedulerEngine.notifyListeners(SchedulerEngine.java:183)
   at org.elasticsearch.xpack.core.scheduler.SchedulerEngine$ActiveSchedule.run(SchedulerEngine.java:216)
   at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
   at java.base/java.lang.Thread.run(Thread.java:832)
"""
     },
     "phase_execution" : {
       "policy" : "metricbeat-test",
       "phase_definition" : {
         "min_age" : "0ms",
         "actions" : {
           "rollover" : {
             "max_size" : "50gb",
             "max_age" : "30d"
           }
         }
       },
       "version" : 616649,
       "modified_date_in_millis" : 1609840384048
     }
   }

```

Does anyone have a solution or a hint?  
best regards

---

<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:** [January 6, 2021, 3:56am UTC](https://discuss.elastic.co/t/index-lifecycle-rollover-alias-metricbeat-does-not-point-to-index-metricbeat-xxx/260187/2 "2021-01-06T03:56:58Z")

</div>

You can resolve that with a request like this one;

```auto

PUT /metricbeat-7.9.0/_alias/metricbeat

```

But that doesn't look right as you don't have a counter attached to the underlying index name.

---

<div class="post-metadata">

**Author:** ![graimato](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@graimato](https://discuss.elastic.co/u/graimato)\
**Post date:** [January 7, 2021, 9:23am UTC](https://discuss.elastic.co/t/index-lifecycle-rollover-alias-metricbeat-does-not-point-to-index-metricbeat-xxx/260187/3 "2021-01-07T09:23:50Z")

</div>

> [@warkolm](#):
>
> `PUT /metricbeat-7.9.0/_alias/metricbeat`

I'll do this and I'll send a feedback soon  
thanks for your time

---

<div class="post-metadata">

**Author:** ![graimato](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@graimato](https://discuss.elastic.co/u/graimato)\
**Post date:** [January 7, 2021, 9:50am UTC](https://discuss.elastic.co/t/index-lifecycle-rollover-alias-metricbeat-does-not-point-to-index-metricbeat-xxx/260187/4 "2021-01-07T09:50:10Z")

</div>

> [@graimato](#):
>
> > [@warkolm](#):
> >
> > `PUT /metricbeat-7.9.0/_alias/metricbeat`

I have an error

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "invalid_alias_name_exception",
        "reason" : "Invalid alias name [metricbeat], an index exists with the same name as the alias",
        "index_uuid" : "rGsnNTnYTjG5sBVi_R4dnA",
        "index" : "metricbeat"
      }
    ],
    "type" : "invalid_alias_name_exception",
    "reason" : "Invalid alias name [metricbeat], an index exists with the same name as the alias",
    "index_uuid" : "rGsnNTnYTjG5sBVi_R4dnA",
    "index" : "metricbeat"
  },
  "status" : 400
}

```

I'm trying to configure metricbeat as client and associate it with an ILM, I did it with filebeat and it's works but with filebeat I have and index as follow

`filebeat-7.9.0-2020.12.17-000009`

filebeat-version-date-XXXXXX  
with metricbeat I have only,  
metricbeat-version

---

<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:** [February 4, 2021, 11:50am UTC](https://discuss.elastic.co/t/index-lifecycle-rollover-alias-metricbeat-does-not-point-to-index-metricbeat-xxx/260187/5 "2021-02-04T11:50:16Z")

</div>

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