We are using curator to delete indices after a certain amount of time in our environments. I am facing an issue with understanding how to make it work for deleting indices based on time but leaving some indices which have a particular string in the name.
For example : Delete all indices older than 4 weeks except the indices which have "secure" in it's name.
Here is my configuration :
--- actions: 1: action: delete_indices description: >- Delete indices older than 4 weeks (based on index name). options: ignore_empty_list: True timeout_override: continue_if_exception: True disable_action: False filters: - filtertype: pattern kind: regex value: '*secure*' exclude: True - filtertype: pattern kind: regex value: '*loyalty*' exclude: True - filtertype: age source: name direction: older timestring: '%Y.%W' unit: weeks unit_count: 4 exclude:
Here is the error I get when I run it.
Failed to complete action: delete_indices. <class 'sre_constants.error'>: nothing to repeat
Could anybody help me understand how to do it or what am I doing wrong here?