# Could not run Logstash as Service

**URL:** <https://discuss.elastic.co/t/could-not-run-logstash-as-service/117024>\
**Category:** Logstash\
**Created:** [January 25, 2018, 10:47am UTC](https://discuss.elastic.co/t/could-not-run-logstash-as-service/117024 "2018-01-25T10:47:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![inhinyera16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inhinyera16/32/61625_2.png) [@inhinyera16](https://discuss.elastic.co/u/inhinyera16)\
**Post date:** [January 25, 2018, 10:47am UTC](https://discuss.elastic.co/t/could-not-run-logstash-as-service/117024/1 "2018-01-25T10:47:02Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![lauea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lauea/32/26743_2.png) [@lauea](https://discuss.elastic.co/u/lauea)\
**Post date:** [January 25, 2018, 11:21am UTC](https://discuss.elastic.co/t/could-not-run-logstash-as-service/117024/2 "2018-01-25T11:21:40Z")

</div>

You mean your logstash service could not start like below:

```bash
$ sudo service logstash start

```

If you can try to show below results:

```bash
$ sudo service logstash status

```

---

<div class="post-metadata">

**Author:** ![inhinyera16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inhinyera16/32/61625_2.png) [@inhinyera16](https://discuss.elastic.co/u/inhinyera16)\
**Post date:** [January 26, 2018, 5:04am UTC](https://discuss.elastic.co/t/could-not-run-logstash-as-service/117024/3 "2018-01-26T05:04:31Z")

</div>

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

---

<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:** [February 23, 2018, 5:04am UTC](https://discuss.elastic.co/t/could-not-run-logstash-as-service/117024/4 "2018-02-23T05:04:49Z")

</div>

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