Home - norla/scratch GitHub Wiki
Elasticsearch full disc
Find big indices and delete them
https://es-url/_cat/indices?pretty&s=store.size:desc
Release the lock
for i in $(curl -s localhost:9200/_cat/indices?pretty | awk '{print $3}');
do curl -X PUT "http://localhost:9200/$i/_settings" -d '{"index.blocks.read_only_allow_delete": null}' -H 'Content-Type: application/json';
done