Hello!
I'm trying to delete with Curator Indices that are older than X time.
Seems like after running curator, it doesn't really work, because I still can see older Indices when running curl -X GET "localhost:9200/_cat/indices?v" command.
My Index format from Logstash conf file -
index => "apps-prod-dal10-%{[kubernetes][namespace]}-deployment-%{[kubernetes][pod][name]}-%{[kubernetes][labels][app]}-%{[kubernetes][container][name]}-%{+YYYY.MM.dd}"
And my curator action file is
---
actions:
1:
action: delete_indices
description: >-
Delete indices older then 14 days.
options:
ignore_empty_list: True
disable_action: True
filters:
- filtertype: pattern
kind: prefix
value: apps-
- filtertype: age
source: name
direction: older
timestring: '%YYYY.%MM.%dd'
unit: days
unit_count: 14
Maybe it's related to timestring format? What it should be like with this kind of Index?
Thanks,
Aleksei