# How can I remove logstash process?

**URL:** <https://discuss.elastic.co/t/how-can-i-remove-logstash-process/216474>\
**Category:** Logstash\
**Created:** [January 24, 2020, 5:39pm UTC](https://discuss.elastic.co/t/how-can-i-remove-logstash-process/216474 "2020-01-24T17:39:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilyyy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lilyyy/32/51129_2.png) [@lilyyy](https://discuss.elastic.co/u/lilyyy)\
**Post date:** [January 24, 2020, 5:39pm UTC](https://discuss.elastic.co/t/how-can-i-remove-logstash-process/216474/1 "2020-01-24T17:39:24Z")

</div>

I killed logstash process, but this process still remain.  
so I tried to kill the process with 'kill -9 [PID]', but I got error message like bash: kill: (36888) - No such process  
even if it is existing and then chaning the PID.

How can I remove this process?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/b/9b56b6a24d1b7a80e998af07d1212fe6b0423db2.png)

---

<div class="post-metadata">

**Author:** ![Ramicoh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramicoh/32/61017_2.png) [@Ramicoh](https://discuss.elastic.co/u/Ramicoh)\
**Post date:** [February 5, 2020, 2:14am UTC](https://discuss.elastic.co/t/how-can-i-remove-logstash-process/216474/2 "2020-02-05T02:14:24Z")

</div>

Logstash tries to close connections in a "polite" way to avoid loss of data. That's why it is taking so long to shutdown. It has a `pipeline.unsafe_shutdown` flag in the `/etc/logstash/logstash.yml` file. if you assign `true` it will shutdown faster.

BTW: if you use UDP, it will also be faster.

Let me know if that helps 🙂

---

<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:** [March 4, 2020, 2:14am UTC](https://discuss.elastic.co/t/how-can-i-remove-logstash-process/216474/3 "2020-03-04T02:14:32Z")

</div>

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