# Gracefully stopping the logstash

**URL:** <https://discuss.elastic.co/t/gracefully-stopping-the-logstash/95653>\
**Category:** Logstash\
**Created:** [August 3, 2017, 7:21am UTC](https://discuss.elastic.co/t/gracefully-stopping-the-logstash/95653 "2017-08-03T07:21:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Post date:** [August 3, 2017, 7:21am UTC](https://discuss.elastic.co/t/gracefully-stopping-the-logstash/95653/1 "2017-08-03T07:21:20Z")

</div>

When I do the CTRL+C I do the following message and logstash is not exiting. I have stopped the filebeat as well which send the data to the logstash pipeline.

D:\elastic-5.4.3\logstash-5.4.3\bin\>[2017-08-03T12:44:57,316][WARN][logstash.runner] SIGINT received. Shutting down the agent.  
[2017-08-03T12:44:59,382][WARN][logstash.agent] stopping pipeline {:id=\>".monitoring-logstash"}  
[2017-08-03T12:45:02,459][WARN][logstash.agent] stopping pipeline {:id=\>"main"}  
[2017-08-03T12:45:03,663][WARN][logstash.runner] Received shutdown signal, but pipeline is still waiting for in-flight events  
to be processed. Sending another ^C will force quit Logstash, but this may cause  
data loss.  
[2017-08-03T12:45:07,629][WARN][logstash.shutdownwatcher] {"inflight\_count"=\>0, "stalling\_thread\_info"=\>{"other"=\>[{"thread\_id"=\>117, "name"=\>"[main]\<beats", "current\_call"=\>"[...]/vendor/bundle/jruby/1.9/gems/logstash-input-beats-3.1.18-java/lib/logstash/inputs/beats.rb:206:in `run'"}, {"thread_id"=>115, "name"=>"[main]>worker2", "current_call"=>"[...]/logstash-core/lib/logstash/util/wrapped_synchronous_queue.rb:136:in`synchronize'"}], ["LogStash::Filters::GeoIP", {"source"=\>"clientip", "id"=\>"56670bb9e4242cfb321ed6a2c926f7107e9a754b-3"}]=\>[{"thread\_id"=\>113, "name"=\>"[main]\>worker0", "current\_call"=\>"[...]/logstash-core/lib/logstash/util/wrapped\_synchronous\_queue.rb:136:in `synchronize'"}, {"thread_id"=>114, "name"=>"[main]>worker1", "current_call"=>"[...]/logstash-core/lib/logstash/util/wrapped_synchronous_queue.rb:118:in`synchronize'"}, {"thread\_id"=\>116, "name"=\>"[main]\>worker3", "current\_call"=\>"[...]/logstash-core/lib/logstash/util/wrapped\_synchronous\_queue.rb:136:in `synchronize'"}]}}  
[2017-08-03T12:45:07,668][ERROR][logstash.shutdownwatcher] The shutdown process appears to be stalled due to busy or blocked plugins. Check the logs for more information.

---

<div class="post-metadata">

**Author:** ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Post date:** [August 3, 2017, 7:24am UTC](https://discuss.elastic.co/t/gracefully-stopping-the-logstash/95653/2 "2017-08-03T07:24:59Z")

</div>

I can see the same statements in the logstash-plain.log as well.

---

<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:** [August 31, 2017, 7:25am UTC](https://discuss.elastic.co/t/gracefully-stopping-the-logstash/95653/3 "2017-08-31T07:25:00Z")

</div>

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