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.
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.