Logstash is not running

While Start the logstash getting below error

{:timestamp=>"2019-01-19T11:22:52.600000+0530", :message=>"Error: Expected one of #, => at line 19, column 11 (byte 285) after output {\n \telasticsearch {\n \t\thosts ", :level=>:error}

config file :
input {
tcp {
port => 5044
codec => json_lines
}
}

output {
elasticsearch {
hosts = >["127.0.0.1:9200"]
index=>"cms-logback"
}
stdout {
codec => rubydebug
}
}

OK, so what do we find immediately after hosts?

= >["127.0.0.1:9200"]

Change that to be

=> ["127.0.0.1:9200"]

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