Using curator delete index

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.

```
PASTE TEXT HERE
```

Thanks, I found this is caused by configuration file error which I didn't post here.

BTW, is any running log for curator? I could not find the log of curator.

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

If undefined, it will log to STDOUT.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.