Hi all,
i would like to delete indices older X days. I found a lot of posts here but no one helped me.
My action file:
actions:
1:
action: delete_indices
description: >-
Delete indices older than 60 days (based on index name), for winlogbeat-
prefixed indices. Ignore the error if the filter does not result in an
actionable list of indices (ignore_empty_list) and exit cleanly.
options:
ignore_empty_list: True
#timeout_override:
#continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: metricbeat-
#exclude:
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: 2
#exclude:
Problem is that it do not delete anything. I tryed to find something in debug. But dont know how to solve.
2019-10-28 15:41:41,459 DEBUG curator.indexlist __not_actionable:39 Index metricbeat-7.2.0-2019.10.26 is not actionable, removing from list.
2019-10-28 15:41:41,460 DEBUG curator.indexlist __excludify:58 Removed from actionable list: metricbeat-7.2.0-2019.10.26 has index.lifecycle.name metricbeat-7.2.0
How to manage it? I have it in my testing environment and really need to delete indices.
Thanks
Jan