# How to Force shutdown running Logstash in windows using command prompt

**URL:** <https://discuss.elastic.co/t/how-to-force-shutdown-running-logstash-in-windows-using-command-prompt/148648>\
**Category:** Logstash\
**Created:** [September 14, 2018, 4:08pm UTC](https://discuss.elastic.co/t/how-to-force-shutdown-running-logstash-in-windows-using-command-prompt/148648 "2018-09-14T16:08:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gowt](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@gowt](https://discuss.elastic.co/u/gowt)\
**Post date:** [September 14, 2018, 4:08pm UTC](https://discuss.elastic.co/t/how-to-force-shutdown-running-logstash-in-windows-using-command-prompt/148648/1 "2018-09-14T16:08:27Z")

</div>

Hi  
I am running logstash with '1' worker process to load data from sql to elastic using command line 'bin/logstash -f logstash.conf' on regular intervals. it is executing fin with no issues in positive scenarios.

Sometimes logstash process does not complete (it may be due to error. it tries to reconnect/retry with out exit). In these scenarios, i would like to force shutdown active logstash if running so that i can trigger a new process for logstash.

Right now it throws message 'logstash is already running' and to enable again, i have to restart my system. Is there any way from command prompt to force exit running logstash so that i can trigger a new process.

Thank you.

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [September 14, 2018, 5:09pm UTC](https://discuss.elastic.co/t/how-to-force-shutdown-running-logstash-in-windows-using-command-prompt/148648/2 "2018-09-14T17:09:20Z")

</div>

Have you tried sending an interrupt signal?

If you're not familiar, in the Windows command line, you can send a `SIGINT`to the current running process with the `CTRL` + `c` key-stroke to signal an interrupt. Logstash responds to a `SIGINT` by shutting down nicely.

If you really do want to "force" it to shutdown immediately without doing the things it normally does to ensure its next startup will be nice, you can send it a `SIGBREAK` with `CTRL` + `BREAK`.

---

<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:** [October 12, 2018, 5:09pm UTC](https://discuss.elastic.co/t/how-to-force-shutdown-running-logstash-in-windows-using-command-prompt/148648/3 "2018-10-12T17:09:20Z")

</div>

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