# Stop config file of logstash

**URL:** <https://discuss.elastic.co/t/stop-config-file-of-logstash/104665>\
**Category:** Logstash\
**Created:** [October 20, 2017, 7:54am UTC](https://discuss.elastic.co/t/stop-config-file-of-logstash/104665 "2017-10-20T07:54:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![parsa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/parsa/32/23227_2.png) [@parsa](https://discuss.elastic.co/u/parsa)\
**Post date:** [October 20, 2017, 7:54am UTC](https://discuss.elastic.co/t/stop-config-file-of-logstash/104665/1 "2017-10-20T07:54:26Z")

</div>

How can I stop all instances of the conf file that ran by logstash ?

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [October 21, 2017, 8:26pm UTC](https://discuss.elastic.co/t/stop-config-file-of-logstash/104665/2 "2017-10-21T20:26:44Z")

</div>

service logstash stop should do it. Else you can do something alongs the lines of this.  
ps -ef | grep logstash | grep -v grep | awk '{print $2}' | xargs kill  
or  
pkill logstash

---

<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:** [November 18, 2017, 8:26pm UTC](https://discuss.elastic.co/t/stop-config-file-of-logstash/104665/3 "2017-11-18T20:26:53Z")

</div>

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