script de nettoyage moins verbeux (surtout en cas de succès)
This commit is contained in:
parent
cef80f93fb
commit
9c124c38ae
|
@ -570,6 +570,6 @@ indices=$(curl http://127.0.0.1:9200/_cat/indices/logstash-*?h=i | sort | head -
|
||||||
|
|
||||||
for index in ${indices}; do
|
for index in ${indices}; do
|
||||||
# echo Delete ${index}
|
# 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
|
done
|
||||||
~~~
|
~~~
|
||||||
|
|
Loading…
Reference in a new issue