ILM policy should only contain hot to delete stage.
This is my code for ilm policy please check the policy whether it is correct or not.
PUT _ilm/policy/my_policy
{
“policy”: {
“phases”: {
“hot”: {
“actions”: {
“rollover”: {
“max_age”: “30d”
}
}
},
“delete”: {
“min_age”: “30d”,
“actions”: {
“delete”: {}
}
}
}
}
}