Hi
i have some ILM with a delete phase after 7/30 days. However the indexs are not being deleted.
### Index lifecycle management
**Lifecycle policy**
[apm-rollover-30-days]
**Current action**
complete
**Failed step**
-
**Current phase**
delete
**Current action time**
2021-01-07 11:13:20
**Phase definition**
Show definition
its just stuck in the delete phase, and it should of been deleted a long time ago, why is es not deleting these?
should of been deleted on the 07/02/2021 and its still there nearly a month later.
warkolm
(Mark Walkom)
March 2, 2021, 2:17am
2
Please share your policy and an explain against the index.
index -
{
"indices" : {
"apm-7.10.0-error-000001" : {
"index" : "apm-7.10.0-error-000001",
"managed" : true,
"policy" : "apm-rollover-30-days",
"lifecycle_date_millis" : 1610017400389,
"age" : "53.89d",
"phase" : "delete",
"phase_time_millis" : 1610707404916,
"action" : "complete",
"action_time_millis" : 1610018000194,
"step" : "complete",
"step_time_millis" : 1610707404916,
"phase_execution" : {
"policy" : "apm-rollover-30-days",
"phase_definition" : {
"min_age" : "7d",
"actions" : { }
},
"version" : 8,
"modified_date_in_millis" : 1610707402427
}
}
}
}
ILM -
{
"apm-rollover-30-days" : {
"version" : 8,
"modified_date" : "2021-01-15T10:43:22.427Z",
"policy" : {
"phases" : {
"hot" : {
"min_age" : "0ms",
"actions" : {
"rollover" : {
"max_size" : "28gb",
"max_age" : "1d"
},
"set_priority" : {
"priority" : 100
}
}
},
"delete" : {
"min_age" : "7d",
"actions" : { }
},
"warm" : {
"min_age" : "0ms",
"actions" : {
"allocate" : {
"include" : { },
"exclude" : { },
"require" : {
"data" : "warm"
}
},
"forcemerge" : {
"max_num_segments" : 1
},
"readonly" : { },
"set_priority" : {
"priority" : 50
}
}
}
}
}
}
}
warkolm
(Mark Walkom)
March 2, 2021, 6:15pm
4
You need a delete in the actions section too
i actually did this ILM via the kibana UI.
so, is this just something that doesnt happen in the UI?
sounds like a bug?
yep it is...
thanks
how would i now edit these policies to include the action?
warkolm
(Mark Walkom)
March 3, 2021, 10:26pm
6
You can copy the policy above, add the delete and then post it to the API in (the Kibana) Console.
Or just upgrade
system
(system)
Closed
March 31, 2021, 10:26pm
7
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.