Cannot restart logstash

I am config a logstash to obtains logs from a client. But now there is a problem with logstah. There is error information in /var/log/logstash:

logstash.agent cannot create pipeline{reson:"Expected one of #, input, filter, output at line 1, column 1

The elasticsearch-output.conf is

output {
elasticsearch { hosts => ["localhost:9200"]
hosts => "localhost:9200"
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
``
And I have use `df -h` to see the files see the space. It seems that there is still enough space. Can anyone explain this? Thanks.

the logstash version is 5.5.1, run on centOS 7

I have fixed this problem

what was the problem -I have same problem with version 6?

you should see the log of logstash. And you can see the error hints. My problem is the config in conf.d for logstash. @lkofman

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