I am having issues with "final mapping would have more than one type" errors, so I checked to see if logstash has multiple templates left over. I have one, logstash-index-template that when trying curl -X DELETE "{ elasticsearch_ip }:9200/_template/logstash-index-template" gives the {"acknowledged":true} response, but if I immediately try a HEAD curl, it shows the template still exists, and a GET curl shows the template just as it was before.
Elasticsearch does not recreate an index . template by itself, so I suppose, that there is another component doing this pretty quick after deletion. Judging by the name of this template, I suppose it is done by the x-pack plugin code.
What elasticsearch version are you running on? I suppose this is 6.x. You are not running a mixed cluster I suppose?
That index template however only set's something for the .logstash index, which no other system should write into.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.