Install
https://www.elastic.co/guide/en/elasticsearch/client/curator/5.x/apt-repository.html
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb [arch=amd64] https://packages.elastic.co/curator/5/debian stable main" > /etc/apt/sources.list.d/curator.list
sudo apt-get update && sudo apt-get install elasticsearch-curator
# sudo apt install -y elasticsearch-curator
# pip install elasticsearch-curator
Show usage
curl elasticsearch.example.com:9200/_cat/indices
curator.yml
---
client:
hosts:
- elasticsearch.example.com
port: 9200
url_prefix:
use_ssl: False
certificate:
client_cert:
client_key:
ssl_no_validate: False
http_auth:
timeout: 30
master_only: False
logging:
loglevel: INFO
logfile:
logformat: default
blacklist: ['elasticsearch', 'urllib3']
delete_indices.yml