Hi
We are in the process of creating an index template including ilm policy which has mentioned below.
{
"policy": {
"phases": {
"hot": {
"actions": {
"rollover": {
"max_size": "10GB",
"max_age": "1d"
}
}
},
"delete": {
"min_age": "7d",
"actions": {
"delete": {}
}
}
}
}
}
Expected use-case: We are expecting to rollover the created index daily, which means at the end of the day. At 12.00 am (0000h) we are expecting the new index to be created with the current date appended to the index name. So the name format we are expecting in indexes is my-log-yyyy-MM-dd. But the ILM policy we are currently having is not catering to the requirement. When we are bootstrapping the cluster, by giving the date patter it will result in a name like my-log-2020-06-18 as its name, but rolling over will happen with the appended number to that but not with the increased date. ie. my-log-2020-06-18-00001 to my-log-2020-06-18-00002. Please advise on this.