Rollover index lifecycle error

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.

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
{
  "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
PUT indextest/_alias/indextestalias

3.create de template

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

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?

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