Cannot Run Logstsh as a service


(Tharaka Bilesh) #1

Hi,

I had installed logstash using the rpm file. following is the way I used to install logstash.
rpm -ivh logstash-6.4.2.rpm

And my config file is located in below directory.
/etc/logstash/conf.d/

When I am using command line to run the logstash it runs perfectly. I can see data through Kibana as well. But When I run logstash as a service it is not sending data to elastic search.

Following is the command I use to run through CLI.
/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/sample.conf

Following is the command I used to run as a service.
systemctl start logstash.service

Please help me to sort this out.

BR,
Billz


(Makara) #2

Make loglevel of logstash to debug mode and start the service.
View the log in /var/log/logstash/logstash-plain.log for possible hints.


(Tharaka Bilesh) #3

I found the issue which was a permission issue.
Thank you very much


(system) #4

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