fix for keeping daily index

This commit is contained in:
t3chn0m4g3
2020-06-23 21:40:38 +00:00
parent 39c0abb92e
commit 81c6351cf1
4 changed files with 177 additions and 6 deletions

View File

@ -36,9 +36,10 @@ if [ "$myCHECK" == "0" ];
fi
# Make sure logstash can put latest logstash template by deleting the old one first
echo "Removing logstash template."
curl -XDELETE http://elasticsearch:9200/_template/logstash
echo
echo "Checking if empty."
curl -XGET http://elasticsearch:9200/_template/logstash
echo
# This is now done via common_configs.rb => overwrite default logstash template
#echo "Removing logstash template."
#curl -XDELETE http://elasticsearch:9200/_template/logstash
#echo
#echo "Checking if empty."
#curl -XGET http://elasticsearch:9200/_template/logstash
#echo