My curator action file is as follows :
actions:
1:
action: delete_indices
description: >-Delete indices
options:
continue_if_exception: False
filters:
- filtertype: space
disk_space: 0.2
use_age: True
source: creation_date
I wanted to know if this action will remove all indexes exceeding 200 MB or if curator delete the oldest indexes if the size of all indexes exceeds 200 MB ?
I highly recommend not deleting all indices by space without adding additional filters (to prevent your .kibana index from being deleted, for example).
Yes, your provided example will delete all indices in excess of 200MB, starting with the oldest by creation_date. I recommend running this with the --dry-run flag so you can see exactly what would be deleted before you actually run it. The indices which would have been deleted will be in the logs. Or, you can run curator_cli with this filter and the show_indices action:
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.