I am using ELK curator to delete old elasticsearch indices periodically. I am running this as kubernetes cronjob to delete older indices.
I am facing the following error-
2020-02-18 15:54:51,628 ERROR curator.cli run:213 Failed to complete action: delete_indices. <class 'KeyError'>: 'indices'
Following are my configurations -
actions: 1: action: delete_indices description: >- Delete indices older than 2 weeks (based on index name), for vae 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: filters: - filtertype: pattern kind: regex value: '^prod-geo-localhostaccesslog' exclude: - filtertype: age source: creation_date direction: older timestring: '%Y.%W' unit: weeks unit_count: 1 config.yml: |- client: hosts: - https://es.test.com port: url_prefix: use_ssl: False certificate: client_cert: client_key: aws_key: aws_secret_key: aws_region: ssl_no_validate: False http_auth: timeout: 30 master_only: False logging: loglevel: INFO logfile: logformat: default blacklist: ['elasticsearch', 'urllib3']