# \`service logstash start\` doesn't work

**URL:** <https://discuss.elastic.co/t/service-logstash-start-doesnt-work/48384>\
**Category:** Logstash\
**Created:** [April 26, 2016, 6:16am UTC](https://discuss.elastic.co/t/service-logstash-start-doesnt-work/48384 "2016-04-26T06:16:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![g0c00l.g33k](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@g0c00l.g33k](https://discuss.elastic.co/u/g0c00l.g33k)\
**Post date:** [April 26, 2016, 6:16am UTC](https://discuss.elastic.co/t/service-logstash-start-doesnt-work/48384/1 "2016-04-26T06:16:39Z")

</div>

Hi,

I recently updated logstash to 2.2.4, after which `sudo service logstash start` doesn't work as expected.

It says `logstash started` but after few seconds if I check the status it says `logstash is not runnig`.

However, if I start logstash using `sudo /opt/logstash/bin/logstash -f /etc/logstash/conf.d/` it works fine. I am not sure what went wrong. I updated all plugins and still the same issue. I even replaced the `/etc/init.d/logstash` with what I found in [https://github.com/elastic/logstash/blob/master/pkg/logstash.sysv](https://github.com/elastic/logstash/blob/master/pkg/logstash.sysv), didn't solve the issue.

Any pointers on this would be greatly helpful.

Thanks,  
G

---

<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:** [April 27, 2016, 5:37am UTC](https://discuss.elastic.co/t/service-logstash-start-doesnt-work/48384/2 "2016-04-27T05:37:18Z")

</div>

Check the logs in /var/log/logstash.

---

<div class="post-metadata">

**Author:** ![g0c00l.g33k](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@g0c00l.g33k](https://discuss.elastic.co/u/g0c00l.g33k)\
**Post date:** [April 27, 2016, 6:22am UTC](https://discuss.elastic.co/t/service-logstash-start-doesnt-work/48384/3 "2016-04-27T06:22:13Z")

</div>

Hi, The logs are empty. Tailing these logs also show nothing, checked `/var/log/logstash/logstash.log`, `/var/log/logstash/logstash.err` and also `/var/log/logstash/logstash.stdout`

---

<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:** [April 27, 2016, 7:44am UTC](https://discuss.elastic.co/t/service-logstash-start-doesnt-work/48384/4 "2016-04-27T07:44:51Z")

</div>

What are the file permissions of /var/log/logstash and the files you mentioned? Can the logstash user write to them?

---

<div class="post-metadata">

**Author:** ![g0c00l.g33k](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@g0c00l.g33k](https://discuss.elastic.co/u/g0c00l.g33k)\
**Post date:** [April 28, 2016, 6:44am UTC](https://discuss.elastic.co/t/service-logstash-start-doesnt-work/48384/5 "2016-04-28T06:44:17Z")

</div>

Yes, it is owned by logstash user and it is also writable... I have also relaxed the permissions to the max

---

<div class="post-metadata">

**Author:** ![Justin\_V](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@Justin\_V](https://discuss.elastic.co/u/Justin_V)\
**Post date:** [May 4, 2016, 1:41pm UTC](https://discuss.elastic.co/t/service-logstash-start-doesnt-work/48384/6 "2016-05-04T13:41:54Z")

</div>

Hello,  
Same problem for me... Did you find anything that could help ?

---

<div class="post-metadata">

**Author:** ![mnhan](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@mnhan](https://discuss.elastic.co/u/mnhan)\
**Post date:** [May 5, 2016, 1:26pm UTC](https://discuss.elastic.co/t/service-logstash-start-doesnt-work/48384/7 "2016-05-05T13:26:54Z")

</div>

if you run it manually as the logstash user, does it work:

sudo -u logstash -s /bin/bash -i "/opt/logstash/bin/logstash -f /etc/logstash/conf.d/"

running via sudo, it runs as root, not really the same as using the service which runs it as the logstash user.

---

<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:** [July 6, 2017, 4:59am UTC](https://discuss.elastic.co/t/service-logstash-start-doesnt-work/48384/8 "2017-07-06T04:59:16Z")

</div>


