logstash template not upgraded

with daily index enabled logstash will not be able to put new events into ES
simple solution, just deleting logstash template upon logstash start and leave it to logstash to upload the latest template
.
This commit is contained in:
t3chn0m4g3 2020-02-01 14:08:23 +00:00
parent 64729f5064
commit 984ba958fb

View file

@ -34,3 +34,11 @@ if [ "$myCHECK" == "0" ];
else
echo "Cannot reach Github, starting Logstash without latest translation maps."
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