Hello,
I have the following index policy, but my indices are not moving to cold state, even thought 180days have passed. Is there something wrong with it?
{
"id": "hot_warm_cold_delete_workflow",
"seqNo": 181,
"primaryTerm": 1,
"policy": {
"policy_id": "hot_warm_cold_delete_workflow",
"description": "A simple default policy that changes the replica count between hot and cold states.",
"last_updated_time": 1667310926598,
"schema_version": 12,
"error_notification": null,
"default_state": "hot",
"states": [
{
"name": "hot",
"actions": [],
"transitions": [
{
"state_name": "warm",
"conditions": {
"min_index_age": "30d"
}
}
]
},
{
"name": "warm",
"actions": [],
"transitions": [
{
"state_name": "cold",
"conditions": {
"min_index_age": "180d"
}
}
]
},
{
"name": "cold",
"actions": [
{
"retry": {
"count": 1,
"backoff": "exponential",
"delay": "1m"
},
"close": {}
}
],
"transitions": [
{
"state_name": "delete",
"conditions": {
"min_index_age": "366d"
}
}
]
},
{
"name": "delete",
"actions": [
{
"retry": {
"count": 1,
"backoff": "exponential",
"delay": "1m"
},
"delete": {}
}
],
"transitions": []
}
],
"ism_template": [
{
"index_patterns": [
"wazuh-alerts*"
],
"priority": 1,
"last_updated_time": 1667310926598
},
{
"index_patterns": [
"wazuh-archives*"
],
"priority": 1,
"last_updated_time": 1667310926598
}
]
}
}
Thanks,
Cristian