diff --git a/HowtoElasticsearch.md b/HowtoElasticsearch.md index cd51b385..6f96db28 100644 --- a/HowtoElasticsearch.md +++ b/HowtoElasticsearch.md @@ -570,6 +570,6 @@ indices=$(curl http://127.0.0.1:9200/_cat/indices/logstash-*?h=i | sort | head - for index in ${indices}; do # echo Delete ${index} - curl -XDELETE http://127.0.0.1:9200/${index} + curl --silent --fail --show-error -XDELETE http://127.0.0.1:9200/${index} > /dev/null done ~~~