Hello Elasticians !
While testing ILM policy feature, I've just figured that the delete phase is relative to the rollover time, not the index creation time (source)
Let's say I have the following ILM policy :
{
"ims_customer_policy" : {
"version" : 1,
"modified_date" : "2019-10-02T09:59:43.574Z",
"policy" : {
"phases" : {
"hot" : {
"min_age" : "0ms",
"actions" : {
"rollover" : {
"max_size" : "30gb"
}
}
},
"delete" : {
"min_age" : "365d",
"actions" : {
"delete" : { }
}
}
}
}
}
}
This way, all index have a regular size (which is a good practice I think) but I can't be sure that logs will be conserved one year because an index could take one hour, or three days or whatever to reach the size of 30 GB right ? Some could be conserved some month while other could be conserved more than one year
My only option would be to add max age : 1 to my hot phase, but index size will not be regular (i.e more logs on week and less in weekends)
So, what is your best strategy to have a good compromise between retention time and index size ?
Thanks for your feedback !

