I'm using ES 7.1... here is my ILM policy:
GET _ilm/policy/el_metric_policy
{
"el_metric_policy" : {
"version" : 1,
"modified_date" : "2021-03-20T15:53:20.941Z",
"policy" : {
"phases" : {
"hot" : {
"min_age" : "0ms",
"actions" : {
"rollover" : {
"max_size" : "10mb",
"max_age" : "10h"
},
"set_priority" : {
"priority" : 100
}
}
},
"delete" : {
"min_age" : "1h",
"actions" : {
"delete" : { }
}
}
}
}
}
}
Here is my template:
GET _template/el_metric_template
{
"el_metric_template" : {
"order" : 0,
"index_patterns" : [
"elasticsearch_metrics*"
],
"settings" : {
"index" : {
"lifecycle" : {
"name" : "el_metric_policy",
"rollover_alias" : "el_metric"
},
"number_of_shards" : "1",
"number_of_replicas" : "1"
}
},
"mappings" : { },
"aliases" : { }
}
}
But my indices are still unmanaged.
GET elasticsearch_metrics-*/_ilm/explain
{
"indices" : {
"elasticsearch_metrics-2021.03.18" : {
"index" : "elasticsearch_metrics-2021.03.18",
"managed" : false
},
"elasticsearch_metrics-2021.03.20" : {
"index" : "elasticsearch_metrics-2021.03.20",
"managed" : false
},
"elasticsearch_metrics-2021.03.17" : {
"index" : "elasticsearch_metrics-2021.03.17",
"managed" : false
},
"elasticsearch_metrics-2021.03.19" : {
"index" : "elasticsearch_metrics-2021.03.19",
"managed" : false
}
}
}
What did i do wrong?