From 9c124c38aec8f5cf083206f6d144c3bcf95eeeac Mon Sep 17 00:00:00 2001 From: jlecour Date: Mon, 30 Jan 2017 11:56:36 +0100 Subject: [PATCH] =?UTF-8?q?script=20de=20nettoyage=20moins=20verbeux=20(su?= =?UTF-8?q?rtout=20en=20cas=20de=20succ=C3=A8s)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoElasticsearch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ~~~