# LogStash 5.5.0 start as a service does not read config file

**URL:** <https://discuss.elastic.co/t/logstash-5-5-0-start-as-a-service-does-not-read-config-file/94427>\
**Category:** Logstash\
**Created:** [July 25, 2017, 7:02am UTC](https://discuss.elastic.co/t/logstash-5-5-0-start-as-a-service-does-not-read-config-file/94427 "2017-07-25T07:02:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manojkumar](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@manojkumar](https://discuss.elastic.co/u/manojkumar)\
**Post date:** [July 25, 2017, 7:02am UTC](https://discuss.elastic.co/t/logstash-5-5-0-start-as-a-service-does-not-read-config-file/94427/1 "2017-07-25T07:02:41Z")

</div>

Hi,

I am running logstash 5.5 on ubuntu 16.04.

I SSH into my linux box using a cert and sudo to root user. My config file is under /etc/logstash/conf.d/logstash-apache.conf.

a) When I run logstash from the command line:

/opt/logstash/bin/logstash -f /etc/logstash/conf.d/logstash-apache.conf  
I see : -bash: /opt/logstash/bin/logstash: No such file or directory

so how i will run logstash.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 25, 2017, 9:26pm UTC](https://discuss.elastic.co/t/logstash-5-5-0-start-as-a-service-does-not-read-config-file/94427/2 "2017-07-25T21:26:55Z")

</div>

I'm assuming you've installed Logstash with the official Debian package in which case Logstash 5.5 isn't installed in /opt/logstash. See [https://www.elastic.co/guide/en/logstash/current/dir-layout.html#deb-layout](https://www.elastic.co/guide/en/logstash/current/dir-layout.html#deb-layout) for details on where the files are stored.

---

<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:** [August 22, 2017, 9:27pm UTC](https://discuss.elastic.co/t/logstash-5-5-0-start-as-a-service-does-not-read-config-file/94427/3 "2017-08-22T21:27:15Z")

</div>

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