Hi there,
I have been trying to get this to work but it seems it isnt applied properly but I cant figure out what the issue is:
What I want to achieve, as previously with Curator I would like to control the overall stored data in my stack by purging data out or preferably rollover when a certain index reaches a certain size.
As an example I got an index packetbeat-7.3.1-2019.09.07-000001 with the current size of 29.4GB though my policy says:
rollover, max size 5B, maximum age 1 - with the aim that if the size gets above 5GB to create a new index else on a daily basis
my deletion policy says 7 days from rollover
pretty simple I would say? expectation it created 5GB indexes or daily ones, and starts removing them after 7days, so I would have only 35GB occupied by packetbeat data - but though this policy is assigned it doesnt seem to have the expected outcomes.
when I check the policy itself - as I did just now, I can see that the policy assigned in kibana does not match:
GET packetbeat-*/_ilm/explain
{
"indices" : {
"packetbeat-7.3.1-2019.09.07-000001" : {
"index" : "packetbeat-7.3.1-2019.09.07-000001",
"managed" : true,
"policy" : "packetbeat-7.3.1",
"lifecycle_date_millis" : 1567848053342,
"phase" : "hot",
"phase_time_millis" : 1567848053490,
"action" : "rollover",
"action_time_millis" : 1567848421271,
"step" : "check-rollover-ready",
"step_time_millis" : 1567848421271,
"phase_execution" : {
"policy" : "packetbeat-7.3.1",
"phase_definition" : {
"min_age" : "0ms",
"actions" : {
"rollover" : {
"max_size" : "50gb",
"max_age" : "30d"
}
}
},
"version" : 28,
"modified_date_in_millis" : 1567848053149
}
what am I doing wrong here or why arent the kibana set values applied?
cheers
EDIT: seems you cant edit the policy in place, need to remove and re-attach to enforce it ....