mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
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:
parent
64729f5064
commit
984ba958fb
1 changed files with 8 additions and 0 deletions
8
docker/elk/logstash/dist/update.sh
vendored
8
docker/elk/logstash/dist/update.sh
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue