# Check if Logstash is Stuck

**URL:** <https://discuss.elastic.co/t/check-if-logstash-is-stuck/66303>\
**Category:** Logstash\
**Created:** [November 16, 2016, 9:00pm UTC](https://discuss.elastic.co/t/check-if-logstash-is-stuck/66303 "2016-11-16T21:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chromechris](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@chromechris](https://discuss.elastic.co/u/chromechris)\
**Post date:** [November 16, 2016, 9:00pm UTC](https://discuss.elastic.co/t/check-if-logstash-is-stuck/66303/1 "2016-11-16T21:00:00Z")

</div>

Is there any way to check if Logstash is stuck besides restarting it and seeing that the Logstash process failed to terminate?

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [November 17, 2016, 2:01pm UTC](https://discuss.elastic.co/t/check-if-logstash-is-stuck/66303/2 "2016-11-17T14:01:09Z")

</div>

what do you mean stuck?

You mean not shutting down? there is a LS\_KILL (or somthing like that) in the /etc/sysconfig/logstash that you can change. by default the stop script will let LS gracefully shutdown. (No matter how long it takes) this is so messages don't get lost

Enabling the kill will let it try to shutdown and then after a couple iterations will kill -9 the process

---

<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:** [December 15, 2016, 2:01pm UTC](https://discuss.elastic.co/t/check-if-logstash-is-stuck/66303/3 "2016-12-15T14:01:10Z")

</div>

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