Logstash: unrecognized service

CentOS 6.9 use elastic repo install logstash,but logstash daemon service can't not found .when execte sudo service logstash start ,error logstash: unrecognized service

That's because Logstash auto-detected that CentOS 6 uses upstart

You can manually force Logstash to create a SysV init file by running:

/usr/share/logstash/bin/system-install /etc/logstash/startup.options sysv 

You can then force it to regard this as a service, if you need to.

1 Like

thank you every much!

I have other issue, logstash can't not stop, even if I use kill logstash pid, wait a miutes logstash will auto start. It bothered me

As this is unrelated to the original topic, please start another thread.

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