Cannot restart logstash


(Neal Caffery) #1

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.

(Neal Caffery) #2

the logstash version is 5.5.1, run on centOS 7


(Neal Caffery) #3

I have fixed this problem


(Leon Kofman) #4

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


(Neal Caffery) #5

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


(system) #6

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