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 :
- 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"
]
}
}
}
- 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"
}
}
}
- add the lifepolicy to the index
I dont understand why this error remains
Thanks in advance