I am trying to clean weekly indexes older than 4 weeks on elasticsearch 7.x however not able to figure out the curator config
Current config is
- filtertype: period period_type: relative source: name range_from: -4 range_to: 0 timestring: '%Y.%m.%d' unit: weeks week_starts_on: monday
Per my understanding ( Correct if i am wrong ), this should target 4 weeks of worth index backdated from today.
I have an index for testing which i believe should be removed however its not being taken as part of cleanup criteria
2021-03-16 10:15:03,326 DEBUG curator.indexlist filter_by_age:550 Index "inf_os_logs-2021.11" does not meet provided criteria. Removing from list.
Could anyone suggest the right way to remove index older than 4 weeks with the following naming convention
inf_XXXXXXX_logs-YYYY-WW as the template.