Logstash ouptput plugin configuration is not working


(Kishore) #1

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.


(Christian Dahlqvist) #2

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.


(system) #3