Could not run Logstash as Service

I installed logstash using rpm.
When i run the logstash in command line, my filebeat can connect to it.
But when i try to run it using the same config and settings file, its not working.
I can verify that the service is running through ps -ef | grep logstash

Below is my logstash settings

config.reload.automatic: false
path.config: /etc/logstash/conf.d/*.conf
path.data: /var/lib/logstash
path.logs: /var/log/logstash
pipeline.output.workers: 3
pipeline.workers: 6

And is use this command to run logstash as service
sudo service logstash start

You mean your logstash service could not start like below:

$ sudo service logstash start

If you can try to show below results:

$ sudo service logstash status

Thank you for reply Lauea,

I resolved it already. For RPM installed, there's a permission issue. I resolved it using the commands :

chown logstash:logstash /var/lib/logstash/queue
chown logstash:logstash /var/lib/logstash/dead_letter_queue
chown logstash:logstash /var/lib/logstash/.lock

1 Like

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