Hi
I have created an ILM which would delete an index after 5 days of creation. I have disabled the index rollover so my policy has the hot phase and delete phase . Below is the policy for reference .
PUT _ilm/policy/server_activity_lifecycle
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"set_priority": {
"priority": 29
}
}
},
"delete": {
"min_age": "5d",
"actions": {
"delete": {
"delete_searchable_snapshot": true
}
}
}
}
}
}
I am observing the issue that some index which are created way around 10-15days earlier are still active(hot phase) and not deleted. I tried using the explain api, the common thing which I could observe with all the index is the age of the index is quite not right.
An example of which is an index named elastic_sink_20220117 which is kind of 14 days old is showing age as "age" : "4.25d".
I didn't understand why the difference ??
I quite get the fact that the age is basically the age after index roll over, but I have disabled the rollover still why the age difference ?
Am I missing something here ?? What can I do to delete the index perfectly after 5 days of creation ?