Cant‘s create logstash service in Centos 6

ENV:

CentOS release 6.8 (Final) 64bit
logstash 6.4.2

I installed logstash with yum.

I executed service logstash start,but it reported logstash: unrecognized service.

I had executed initctl start logstash but not work as
https://www.elastic.co/guide/en/logstash/6.4/running-logstash.html

so I do /usr/share/logstash/bin/system-install /etc/logstash/startup.options sysv follow
https://discuss.elastic.co/t/although-installing-logstash-i-get-logstash-unrecognized-service/76282
It have create a file /etc/init.d/logstash,but I just receivelogstash started either it did't work( I did't see logstash process when check it ps axu|grep logstash)when I executed service logstash start

What is the output of service logstash status ? If it is active/started then create a stream input on TCP port (9999, 9991...) and check if the port is listening using netstat command. Otherwise make logging of logstash to debug mode and dig the log files (/var/log/logstash/logstash-plain.log) for possible errors.

Thank you for your reply!!!
There is no port listening and no anything log output when change to debug mode!

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