# Logstash as service restarts every 30sec, also doesnt log

**URL:** <https://discuss.elastic.co/t/logstash-as-service-restarts-every-30sec-also-doesnt-log/117185>\
**Category:** Logstash\
**Created:** [January 26, 2018, 11:02am UTC](https://discuss.elastic.co/t/logstash-as-service-restarts-every-30sec-also-doesnt-log/117185 "2018-01-26T11:02:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![c4alexc4](https://avatars.discourse-cdn.com/v4/letter/c/53a042/32.png) [@c4alexc4](https://discuss.elastic.co/u/c4alexc4)\
**Post date:** [January 26, 2018, 11:02am UTC](https://discuss.elastic.co/t/logstash-as-service-restarts-every-30sec-also-doesnt-log/117185/1 "2018-01-26T11:02:41Z")

</div>

Hey,

I was trying out different things with logstash while starting it from command line using  
sudo /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/config.conf

Everything worked fine there. I would like to use logstash as a service in the long term.  
When no logs showed up I looked up the status using  
sudo service logstash status  
I noticed that logstash was restarting every 30s because of the line:  
Active: active (running) since .....; 15s ago  
The time at the end of the line never exceed 30s.

When I tried to look at the logstash logs I noticed that "ls /var/log/logstash" returns absolutely nothing even though I have "path.logs: /var/log/logstash" in my logstash.yml

Any ideas would be appreciated,  
Alex

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [January 26, 2018, 12:45pm UTC](https://discuss.elastic.co/t/logstash-as-service-restarts-every-30sec-also-doesnt-log/117185/2 "2018-01-26T12:45:59Z")

</div>

What version of Logstash is at play here?  
It has been found that debug logging goes a long way in getting more out the Logstash logging.

---

<div class="post-metadata">

**Author:** ![c4alexc4](https://avatars.discourse-cdn.com/v4/letter/c/53a042/32.png) [@c4alexc4](https://discuss.elastic.co/u/c4alexc4)\
**Post date:** [January 26, 2018, 2:24pm UTC](https://discuss.elastic.co/t/logstash-as-service-restarts-every-30sec-also-doesnt-log/117185/3 "2018-01-26T14:24:13Z")

</div>

Im using logstash 6.1.2-1

Are you talking about the (debug) logging level? I think I need to find out, why logstash is seemingly not writing any logs at all first.

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [January 26, 2018, 2:29pm UTC](https://discuss.elastic.co/t/logstash-as-service-restarts-every-30sec-also-doesnt-log/117185/4 "2018-01-26T14:29:43Z")

</div>

If not seen already and in aid here: [https://www.elastic.co/guide/en/logstash/current/logging.html](https://www.elastic.co/guide/en/logstash/current/logging.html)

---

<div class="post-metadata">

**Author:** ![Peter\_Boer](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Peter\_Boer](https://discuss.elastic.co/u/Peter_Boer)\
**Post date:** [January 26, 2018, 2:41pm UTC](https://discuss.elastic.co/t/logstash-as-service-restarts-every-30sec-also-doesnt-log/117185/5 "2018-01-26T14:41:01Z")

</div>

This error can be the result of a plugin not working correctly. List your installed plugins with  
`sudo bin/logstash-plugin list`  
and if needed remove them with  
`sudo bin/logstash-plugin remove [pluginname]`

---

<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, 2:41pm UTC](https://discuss.elastic.co/t/logstash-as-service-restarts-every-30sec-also-doesnt-log/117185/6 "2018-02-23T14:41:11Z")

</div>

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