# Cannot Run Logstsh as a service

**URL:** <https://discuss.elastic.co/t/cannot-run-logstsh-as-a-service/152377>\
**Category:** Logstash\
**Created:** [October 14, 2018, 7:45am UTC](https://discuss.elastic.co/t/cannot-run-logstsh-as-a-service/152377 "2018-10-14T07:45:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Billz1026](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@Billz1026](https://discuss.elastic.co/u/Billz1026)\
**Post date:** [October 14, 2018, 7:45am UTC](https://discuss.elastic.co/t/cannot-run-logstsh-as-a-service/152377/1 "2018-10-14T07:45:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Makra](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@Makra](https://discuss.elastic.co/u/Makra)\
**Post date:** [October 14, 2018, 8:40am UTC](https://discuss.elastic.co/t/cannot-run-logstsh-as-a-service/152377/2 "2018-10-14T08:40:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Billz1026](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@Billz1026](https://discuss.elastic.co/u/Billz1026)\
**Post date:** [October 14, 2018, 9:15am UTC](https://discuss.elastic.co/t/cannot-run-logstsh-as-a-service/152377/3 "2018-10-14T09:15:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 11, 2018, 9:15am UTC](https://discuss.elastic.co/t/cannot-run-logstsh-as-a-service/152377/4 "2018-11-11T09:15:06Z")

</div>

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