# Logstash qusetion about template change ?need restart?

**URL:** <https://discuss.elastic.co/t/logstash-qusetion-about-template-change-need-restart/135073>\
**Category:** Logstash\
**Created:** [June 8, 2018, 2:54am UTC](https://discuss.elastic.co/t/logstash-qusetion-about-template-change-need-restart/135073 "2018-06-08T02:54:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [June 8, 2018, 2:54am UTC](https://discuss.elastic.co/t/logstash-qusetion-about-template-change-need-restart/135073/1 "2018-06-08T02:54:06Z")

</div>

logstash 6.2.3  
i have a logstash input data to es with template?  
as  
output {  
stdout {  
codec =\> dots {}  
}

```
  elasticsearch {
    hosts => ["http://xxx:9201/","http://xxx:9201","http://xxx:9201"]
    index => "apache_elastic_example"
    template => "./apache_template.json"
    template_name => "apache_elastic_example"
    template_overwrite => true
  }
}

```

the question is : when the template.json mappling file is **change**?  
**need restarth logstash to update the mapping or not?**

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 8, 2018, 5:41am UTC](https://discuss.elastic.co/t/logstash-qusetion-about-template-change-need-restart/135073/2 "2018-06-08T05:41:23Z")

</div>

I think the template is only uploaded when Logstash starts, so I guess a restart would be necessary.

---

<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:** [July 6, 2018, 5:41am UTC](https://discuss.elastic.co/t/logstash-qusetion-about-template-change-need-restart/135073/3 "2018-07-06T05:41:34Z")

</div>

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