# Logstash ouptput plugin configuration is not working

**URL:** <https://discuss.elastic.co/t/logstash-ouptput-plugin-configuration-is-not-working/40503>\
**Category:** Logstash\
**Created:** [January 29, 2016, 4:43pm UTC](https://discuss.elastic.co/t/logstash-ouptput-plugin-configuration-is-not-working/40503 "2016-01-29T16:43:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kishore](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kishore](https://discuss.elastic.co/u/Kishore)\
**Post date:** [January 29, 2016, 4:43pm UTC](https://discuss.elastic.co/t/logstash-ouptput-plugin-configuration-is-not-working/40503/1 "2016-01-29T16:43:49Z")

</div>

I have update the logstash version form 1.4.2 to 2.1.1, then tried to use template\_overwrite =\> true configuration inside the elasticsearch plugin, but this configuration is not wokring.

Below i have mentioned output configuration

output {  
elasticsearch { hosts =\> [" **.** \*.\*\*\*.\*\*\*:9200"] }  
template\_overwrite =\> true  
stdout { codec =\> rubydebug }  
}

I am getting below error

_"Error: Expected one of #, { at line 5, column 22 (byte 271) after output {_

- elasticsearch { hosts =\> [" **.** \*.\*\*\*.\*\*_:9200"] }_
- template\_overwrite"\*

Kindly help in solving above issue.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 29, 2016, 4:52pm UTC](https://discuss.elastic.co/t/logstash-ouptput-plugin-configuration-is-not-working/40503/2 "2016-01-29T16:52:08Z")

</div>

The template\_overwrite directive is not within the curly braces belonging to the elasticsearch output, and is therefore interpreted as a plugin, which it is not.

---

<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, 2017, 5:13am UTC](https://discuss.elastic.co/t/logstash-ouptput-plugin-configuration-is-not-working/40503/3 "2017-07-06T05:13:44Z")

</div>

Closed on July 6, 2017, 5:13am UTC


