# Logstash - worker dies for no reason

**URL:** https://discuss.elastic.co/t/logstash-worker-dies-for-no-reason/60564
**Category:** Logstash
**Created:** [September 15, 2016, 5:58am UTC](https://discuss.elastic.co/t/logstash-worker-dies-for-no-reason/60564 "2016-09-15T05:58:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![guyisra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyisra/32/11912_2.png) [@guyisra](https://discuss.elastic.co/u/guyisra)
#### Post date: [September 15, 2016, 5:58am UTC](https://discuss.elastic.co/t/logstash-worker-dies-for-no-reason/60564/1 "2016-09-15T05:58:15Z")

</div>

Logstash version: 2.3.4-1  
OS: centos 7  
config file:

```
input {
  kafka {
    bootstrap_servers => "${KAFKA_ADDRESS}"
    topics => ["${LOGSTASH_KAFKA_TOPIC}"]
  }
}

filter {
  ruby {
    code =>
      "require 'json'
       require 'base64'
     
     .. some code in ruby ..
    "
  }
}

output {
  http {
      http_method => 'post'
      url => '${APP_URL}/'
      headers => ["AUTHORIZATION", "Basic ${CREDS}"]
  }

  stdout { }
}

```

Logstash sometimes complains it is dead, and stops processing. The error is not in logstash.err but in logstash.log  
The errors look like

> {:timestamp=\>"2016-09-07T13:41:46.437000+0000", :message=\>#\<LogStash::PipelineReporter::Snapshot:0x6d7c925 @data={:events\_filtered=\>0, :events\_consumed=\>822, :worker\_count=\>1, :inflight\_count=\>0, :worker\_states=\>[{:status=\>"dead", :alive=\>false, :index=\>0, :inflight\_count=\>0}], :output\_info=\>[{:type=\>"http", :config=\>{"http\_method"=\>"post", "url"=\>"${APP\_URL}/", "headers"=\>["AUTHORIZATION", "Basic ${CREDS}"], " **ALLOW\_ENV**"=\>true}, :is\_multi\_worker=\>false, :events\_received=\>0, :workers=\>\<Java::JavaUtilConcurrent::CopyOnWriteArrayList:-392817559 [\<LogStash::Outputs::Http http\_method=\>"post", url=\>"", headers=\>{..}, codec=\>\<LogStash::Codecs::Plain charset=\>"UTF-8"\>, workers=\>1, request\_timeout=\>60, socket\_timeout=\>10, connect\_timeout=\>10, follow\_redirects=\>true, pool\_max=\>50, pool\_max\_per\_route=\>25, keepalive=\>true, automatic\_retries=\>1, retry\_non\_idempotent=\>false, validate\_after\_inactivity=\>200, ssl\_certificate\_validation=\>true, keystore\_type=\>"JKS", truststore\_type=\>"JKS", cookies=\>true, verify\_ssl=\>true, format=\>"json"\>]\>, :busy\_workers=\>1}, {:type=\>"stdout", :config=\>{" **ALLOW\_ENV**"=\>true}, :is\_multi\_worker=\>false, :events\_received=\>0, :workers=\>\<Java::JavaUtilConcurrent::CopyOnWriteArrayList:-1413712692 [\<LogStash::Outputs::Stdout codec=\>\<LogStash::Codecs::Line charset=\>"UTF-8", delimiter=\>"\n"\>, workers=\>1\>]\>, :busy\_workers=\>0}], :thread\_info=\>, :stalling\_threads\_info=\>}\>, :level=\>:warn}

Looking at the code, this seems that the threads died for some reason, but something keeps writing to the log that it is dead.

What does this error mean, and is there a way for it to not happen, or at least, to have it restart automatically if it does happen?

---

<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:38am UTC](https://discuss.elastic.co/t/logstash-worker-dies-for-no-reason/60564/2 "2017-07-06T04:38:10Z")

</div>


