# Index lifecycle error

**URL:** <https://discuss.elastic.co/t/index-lifecycle-error/271200>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [April 25, 2021, 5:17pm UTC](https://discuss.elastic.co/t/index-lifecycle-error/271200 "2021-04-25T17:17:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)\
**Post date:** [April 25, 2021, 5:17pm UTC](https://discuss.elastic.co/t/index-lifecycle-error/271200/1 "2021-04-25T17:17:33Z")

</div>

Hi all. We have elastic cloud 7.12  
I am getting the following errors on the lifecycle for all the new policy I ve put in place.

Any idea?

```auto
illegal_argument_exception: setting [index.lifecycle.rollover_alias] for index [gitlab-prod-metricbeat-7.10.2-2021.04.24] is empty or not defined

```

Here is the policy:

```auto
{
  "gitlab-policy" : {
    "version" : 1,
    "modified_date" : "2021-04-13T09:35:32.429Z",
    "policy" : {
      "phases" : {
        "hot" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_age" : "30d"
            },
            "set_priority" : {
              "priority" : 100
            }
          }
        },
        "delete" : {
          "min_age" : "0d",
          "actions" : {
            "delete" : {
              "delete_searchable_snapshot" : true
            }
          }
        }
      }
    }
  }
}

```

Cheers

---

<div class="post-metadata">

**Author:** ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)\
**Post date:** [April 26, 2021, 6:58pm UTC](https://discuss.elastic.co/t/index-lifecycle-error/271200/2 "2021-04-26T18:58:07Z")

</div>

Hi all.  
anyone on this issue?

Cheers

---

<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:** [April 27, 2021, 12:49am UTC](https://discuss.elastic.co/t/index-lifecycle-error/271200/3 "2021-04-27T00:49:03Z")

</div>

From [Rollover | Elasticsearch Guide [7.12] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.12/ilm-rollover.html);

> - The `index.lifecycle.rollover_alias` must be configured as the alias to roll over.

> [@alfredo.deluca](#):
>
> Hi all.  
> anyone on this issue?
> 
> Cheers

We do try to get to topics when we can, but there's no SLAs here, it's all best efforts.  
If you'd like guaranteed response times then we can get you in contact with someone that can discuss that with you 🙂

---

<div class="post-metadata">

**Author:** ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)\
**Post date:** [April 27, 2021, 6:46am UTC](https://discuss.elastic.co/t/index-lifecycle-error/271200/4 "2021-04-27T06:46:38Z")

</div>

Hi mark.  
I didn't say anything and I appreciate your effort.  
We are already Elastic customer but I don't get this level of support cause you need an higher level of investment which is not what we have right now.  
In the past I had no answer for some post and I'm totally fine.

Cheers mate

/Alf

---

<div class="post-metadata">

**Author:** ![alfredo.deluca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alfredo.deluca/32/95381_2.png) [@alfredo.deluca](https://discuss.elastic.co/u/alfredo.deluca)\
**Post date:** [May 9, 2021, 5:52pm UTC](https://discuss.elastic.co/t/index-lifecycle-error/271200/5 "2021-05-09T17:52:27Z")

</div>

Hi all.  
I am still getting the same error in some indices....  
illegal\_argument\_exception: setting [index.lifecycle.rollover\_alias] for index [mydata-7.10.2-2021.05.05] is empty or not defined

I changed a few indices settings adding  
e.g index.lifecycle.rollover\_alias: "mydata"

but now I got  
illegal\_argument\_exception: index.lifecycle.rollover\_alias [mydata] does not point to index [mydata-l7.10.2-2021.05.07]

What am I doing wrong?

Also how can I fix that through my filebeat helm config?

[cloud.id](http://cloud.id): "{cid}" cloud.auth: "{cau}"  
setup.ilm.enabled: false  
[setup.template.name](http://setup.template.name): "{app}" setup.template.pattern: "{app}-metricbeat-{env}-\*" setup.dashboards.index: "{app}-metricbeat-{env}-\*" [setup.kibana.space.id](http://setup.kibana.space.id): "{app}"

output.elasticsearch:  
index: "{app}-metricbeat-{env}-%%{[agent.version]}-%%{+yyyy.MM.dd}"

Cheers

---

<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:** [June 6, 2021, 5:52pm UTC](https://discuss.elastic.co/t/index-lifecycle-error/271200/6 "2021-06-06T17:52:58Z")

</div>

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