Hi Team,
We have implemented ILM policies to cleanup indexes automatically after 14 days. But I see some old indexes still present with less documents count and Storage size whose min age is passed more than 14 days. Below are ilm policy and delete template.
Its deleting the index as i see another index with latest date, but i see indexes remain there with less documents count and Storage size for old dates (which need to be deleted by that time as per ILM policy). Please check and let us know did we missed anything here.
PUT _ilm/policy/infra_delete_policy
{
"policy": {
"phases": {
"hot": {
"actions": {}
},
"delete": {
"min_age": “14d",
"actions": {
"delete": {}
}
}
}
}
}
- Applying a policy to index template
PUT _template/infra_delete_template
{
"index_patterns": ["infra-*"],
"settings": {
"number_of_shards": 1,
"number_of_replicas": 1,
"index.lifecycle.name": "infra_delete_policy"
}
}