# Logstash stops when running as a service on Redhat

**URL:** <https://discuss.elastic.co/t/logstash-stops-when-running-as-a-service-on-redhat/110193>\
**Category:** Logstash\
**Created:** [December 4, 2017, 5:45pm UTC](https://discuss.elastic.co/t/logstash-stops-when-running-as-a-service-on-redhat/110193 "2017-12-04T17:45:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amruth](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@amruth](https://discuss.elastic.co/u/amruth)\
**Post date:** [December 4, 2017, 5:45pm UTC](https://discuss.elastic.co/t/logstash-stops-when-running-as-a-service-on-redhat/110193/1 "2017-12-04T17:45:02Z")

</div>

Hi,

I am running Logstash as a service on Redhat with the command 'systemctl start logstash'. I am sending logs to Elasticsearch using http output plugin. It worked for some time, but later it is stopped with the following error.

```
[2017-11-29T20:21:35,949][DEBUG][logstash.pipeline] Closing inputs
[2017-11-29T20:21:35,949][DEBUG][logstash.inputs.http] stopping {:plugin=>"LogStash::Inputs::Http"}
[2017-11-29T20:21:35,952][DEBUG][logstash.inputs.http] closing {:plugin=>"LogStash::Inputs::Http"}
[2017-11-29T20:21:35,952][DEBUG][logstash.pipeline] Input plugins stopped! Will shutdown filter/output workers.
[2017-11-29T20:21:35,953][DEBUG][logstash.pipeline] Closed inputs
[2017-11-29T20:21:35,954][DEBUG][logstash.pipeline] Pushing flush onto pipeline
[2017-11-29T20:21:35,956][DEBUG][logstash.pipeline] Pushing shutdown {:thread=>"#<Thread:0x750f5106 sleep>"}
[2017-11-29T20:21:35,956][DEBUG][logstash.pipeline] Pushing shutdown {:thread=>"#<Thread:0xa4ee6b7 run>"}
[2017-11-29T20:21:35,956][DEBUG][logstash.pipeline] Pushing shutdown {:thread=>"#<Thread:0x31b073c7 sleep>"}
[2017-11-29T20:21:35,956][DEBUG][logstash.pipeline] Pushing shutdown {:thread=>"#<Thread:0x4bccd06d sleep>"}
[2017-11-29T20:21:35,956][DEBUG][logstash.pipeline] Shutdown waiting for worker thread #<Thread:0x750f5106>
[2017-11-29T20:21:35,985][DEBUG][logstash.pipeline] Shutdown waiting for worker thread #<Thread:0xa4ee6b7>
[2017-11-29T20:21:35,997][DEBUG][logstash.pipeline] Shutdown waiting for worker thread #<Thread:0x31b073c7>
[2017-11-29T20:21:36,016][DEBUG][logstash.pipeline] Shutdown waiting for worker thread #<Thread:0x4bccd06d>
[2017-11-29T20:21:36,019][DEBUG][logstash.filters.mutate] closing {:plugin=>"LogStash::Filters::Mutate"}
[2017-11-29T20:21:36,019][DEBUG][logstash.outputs.elasticsearch] closing {:plugin=>"LogStash::Outputs::ElasticSearch"}
[2017-11-29T20:21:36,019][DEBUG][logstash.outputs.elasticsearch] Stopping sniffer
[2017-11-29T20:21:36,019][DEBUG][logstash.outputs.elasticsearch] Stopping resurrectionist
[2017-11-29T20:21:36,748][DEBUG][logstash.outputs.elasticsearch] Waiting for in use manticore connections
[2017-11-29T20:21:36,748][DEBUG][logstash.outputs.elasticsearch] Closing adapter #<LogStash::Outputs::ElasticSearch::HttpClient::ManticoreAdapter:0x4f521bd3>
[2017-11-29T20:21:36,749][DEBUG][logstash.outputs.file] closing {:plugin=>"LogStash::Outputs::File"}
[2017-11-29T20:21:36,749][DEBUG][logstash.outputs.file] Close: closing files
[2017-11-29T20:21:36,750][DEBUG][logstash.outputs.file] Closed file /tmp/logstash/indicesoutput.log {:fd=>#<IOWriter:0x1a260612 @active=true, @io=#<File:/tmp/logstash/indicesoutput.log (closed)>>}
[2017-11-29T20:21:36,750][DEBUG][logstash.outputs.elasticsearch] closing {:plugin=>"LogStash::Outputs::ElasticSearch"}
[2017-11-29T20:21:36,750][DEBUG][logstash.outputs.elasticsearch] Stopping sniffer
[2017-11-29T20:21:36,750][DEBUG][logstash.outputs.elasticsearch] Stopping resurrectionist
[2017-11-29T20:21:36,845][DEBUG][logstash.outputs.elasticsearch] Waiting for in use manticore connections
[2017-11-29T20:21:36,845][DEBUG][logstash.outputs.elasticsearch] Closing adapter #<LogStash::Outputs::ElasticSearch::HttpClient::ManticoreAdapter:0x2486db4d>
[2017-11-29T20:21:36,845][DEBUG][logstash.pipeline] Pipeline main has been shutdown
```

---

<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:** [January 1, 2018, 5:45pm UTC](https://discuss.elastic.co/t/logstash-stops-when-running-as-a-service-on-redhat/110193/2 "2018-01-01T17:45:29Z")

</div>

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