# Logstash keeps hanging

**URL:** <https://discuss.elastic.co/t/logstash-keeps-hanging/27214>\
**Category:** Logstash\
**Created:** [August 11, 2015, 7:01pm UTC](https://discuss.elastic.co/t/logstash-keeps-hanging/27214 "2015-08-11T19:01:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![theologian](https://avatars.discourse-cdn.com/v4/letter/t/b5e925/32.png) [@theologian](https://discuss.elastic.co/u/theologian)\
**Post date:** [August 11, 2015, 7:01pm UTC](https://discuss.elastic.co/t/logstash-keeps-hanging/27214/1 "2015-08-11T19:01:48Z")

</div>

Hello,

We are having an issue where logstash just hangs. When we strace -f the PID it starts working again. We tried upping the memory, but that did not fix it. We also tried kill -3 (see output below) and jstack, but still can't find the cause. Has anyone else seen this?

Thanks!

Sending logstash logs to /var/log/logstash/logstash.log.  
The error reported is:  
pattern %{NGUSERNAME} not defined

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 11, 2015, 11:29pm UTC](https://discuss.elastic.co/t/logstash-keeps-hanging/27214/2 "2015-08-11T23:29:44Z")

</div>

What does your config look like? What version are you on?

---

<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, 5:32am UTC](https://discuss.elastic.co/t/logstash-keeps-hanging/27214/3 "2017-07-06T05:32:14Z")

</div>

Closed on July 6, 2017, 5:32am UTC


