I am following document to delete index by using curator.
running command like
curator /home/ubuntu/curator/delete-index/openapi.yml --config /home/ubuntu/curator/curator-staging.yml
After command is completed with no error, but older index still exists. Any error in my yaml file?
The delete yaml file is following
actions:
1:
action: delete_indices
description: >-
Delete indices older than 5 days (based on index name), for logstash-
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
continue_if_exception: False
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: openapi-
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: 5
Please edit your post and encapsulate your config lines in triple back-ticks, otherwise I cannot whether the config is inaccurate. YAML formatting is very specific.
You define the log in the ~/.curator/curator.yml file, or what you specify as the file with --config /path/to/config.yml, or if using curator_cli, you can alternatively specify --logfile /path/to/logfile.log
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.