# Logstash won't change template

**URL:** <https://discuss.elastic.co/t/logstash-wont-change-template/195098>\
**Category:** Logstash\
**Created:** [August 13, 2019, 8:23pm UTC](https://discuss.elastic.co/t/logstash-wont-change-template/195098 "2019-08-13T20:23:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwalls](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jwalls](https://discuss.elastic.co/u/jwalls)\
**Post date:** [August 13, 2019, 8:23pm UTC](https://discuss.elastic.co/t/logstash-wont-change-template/195098/1 "2019-08-13T20:23:38Z")

</div>

I am running logstash on a docker container, and I need to put in the template i am using. I have tried a PUT command to my elasticsearch URL, but the container continues to use the default template and gives me the `final mapping would have more than 1 type` error.  
Is there something I am missing with adding the new template into logstash? I curled the url with GET and see my template in the list of templates. However if I GET all templates, the template the logstash container is using isn't in the list, which leads me to believe it's a default.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 10, 2019, 8:23pm UTC](https://discuss.elastic.co/t/logstash-wont-change-template/195098/2 "2019-09-10T20:23:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
