# Rollover index lifecycle error

**URL:** <https://discuss.elastic.co/t/rollover-index-lifecycle-error/313900>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [September 7, 2022, 2:58pm UTC](https://discuss.elastic.co/t/rollover-index-lifecycle-error/313900 "2022-09-07T14:58:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![artax\_sb](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@artax\_sb](https://discuss.elastic.co/u/artax_sb)\
**Post date:** [September 7, 2022, 2:58pm UTC](https://discuss.elastic.co/t/rollover-index-lifecycle-error/313900/1 "2022-09-07T14:58:02Z")

</div>

Hi all!

I know there are plenty post about this error but although i read them and all the doc I cant understand what is the error.

 ![error](https://us1.discourse-cdn.com/elastic/original/3X/f/1/f1d40b054ef7043682885cb7f418166189881aaf.png)

I have an index already created which contains many logs--\> intextest

I want to apply a rollover and delete with these conditions as it has a large amount of data (dont pay attention to gb and days they are only a test )

rollover --\> 10min or 50 gb  
delete --\> 10min after rollover

the steps are the :

1. create the lifepolicy

```auto
{
  "my-policy" : {
    "version" : 2,
    "modified_date" : "2022-09-07T14:32:44.570Z",
    "policy" : {
      "phases" : {
        "hot" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_primary_shard_size" : "50gb",
              "max_age" : "10m"
            },
            "set_priority" : {
              "priority" : 100
            }
          }
        },
        "delete" : {
          "min_age" : "10m",
          "actions" : {
            "delete" : {
              "delete_searchable_snapshot" : true
            }
          }
        }
      }
    },
    "in_use_by" : {
      "indices" : [
        "indextest"
      ],
      "data_streams" : [],
      "composable_templates" : [
        "my_template"
      ]
    }
  }
}

```

1. create de alias

```auto
PUT indextest/_alias/indextestalias

```

3.create de template

```auto
PUT _index_template/my_template
{
  "index_patterns": ["indextest*"],                 
  "template": {
    "settings": {
      "number_of_shards": 1,
      "number_of_replicas": 1,
      "index.lifecycle.name": "my-policy",      
      "index.lifecycle.rollover_alias": "indextestalias"    
    }
  }
}

```

1. add the lifepolicy to the index

I dont understand why this error remains  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![artax\_sb](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@artax\_sb](https://discuss.elastic.co/u/artax_sb)\
**Post date:** [September 7, 2022, 3:26pm UTC](https://discuss.elastic.co/t/rollover-index-lifecycle-error/313900/2 "2022-09-07T15:26:09Z")

</div>

Ok, just a bit error, the alias is not working ok

but this error give me headache too what is wrong with the alias'name?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/9/b9f3f93eb6b9d422cc4f114995f2f2286c90db89.png)

---

<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:** [October 5, 2022, 3:27pm UTC](https://discuss.elastic.co/t/rollover-index-lifecycle-error/313900/3 "2022-10-05T15:27:06Z")

</div>

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