I created this policy for testing e apliquei a um template:
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"set_priority": {
"priority": 100
}
}
},
"delete": {
"min_age": "60ms",
"actions": {
"delete": {}
}
}
}
}
}
However, the index is not being excluded. The return from /_ilm/explain shows:
{
"indices": {
"example-index-name": {
"index": "example-index-name",
"managed": true,
"policy": "example-policy-name",
"lifecycle_date_millis": 1590542282531,
"age": "2.48m",
"phase": "delete",
"phase_time_millis": 1590542283687,
"action": "delete",
"action_time_millis": 1590542283687,
"step": "wait-for-shard-history-leases",
"step_time_millis": 1590542283687,
"phase_execution": {
"policy": "example-policy-name",
"phase_definition": {
"min_age": "60ms",
"actions": {
"delete": {}
}
},
"version": 3,
"modified_date_in_millis": 1590542258883
}
}
}
}