# Unable to stop filebeat

**URL:** <https://discuss.elastic.co/t/unable-to-stop-filebeat/177210>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 17, 2019, 7:13am UTC](https://discuss.elastic.co/t/unable-to-stop-filebeat/177210 "2019-04-17T07:13:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [April 17, 2019, 7:13am UTC](https://discuss.elastic.co/t/unable-to-stop-filebeat/177210/1 "2019-04-17T07:13:02Z")

</div>

Hello,

I am unable to stop filebeat from sending the logs  
My filebeat config is

filebeat.prospectors:

- input\_type: log  
paths:
  - /var/www/html/hfurpublic\_html/urllog/\*\*/\*  
fields:  
service\_id: 347rfnkr  
multiline:  
pattern: '^{"+\w[a-z]'  
negate: true  
match: before  
output.logstash:  
hosts: ['IP:5044']

As i run the filebeat with the command ./filebeat & after that when i kill it with PID  
even after killing I am still getting logs in the index moreover I have also shut down logstash.  
even i checked it with the grep command  
both logstash and filebeat are not working still i am getting logs

A help would be really appreciated

Regards

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [April 17, 2019, 8:52am UTC](https://discuss.elastic.co/t/unable-to-stop-filebeat/177210/2 "2019-04-17T08:52:34Z")

</div>

@elastic Please someone help if possible  
a guidence is needed

Regards

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [April 17, 2019, 4:41pm UTC](https://discuss.elastic.co/t/unable-to-stop-filebeat/177210/3 "2019-04-17T16:41:24Z")

</div>

Are you sure you don't have other Filebeat and/or Logstash processes running, perhaps in the background and/or on another machine?

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [April 17, 2019, 4:54pm UTC](https://discuss.elastic.co/t/unable-to-stop-filebeat/177210/4 "2019-04-17T16:54:44Z")

</div>

@shaunak Thankyou for the response.  
I installed two beats as i want to index the data to two different indices at different cluster.  
So i installed two different beats and started them in background

I killed both the apps still i am getting the data.  
and even after killing the logstash  
even i checked PID

Regards

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [April 17, 2019, 5:09pm UTC](https://discuss.elastic.co/t/unable-to-stop-filebeat/177210/5 "2019-04-17T17:09:46Z")

</div>

> [@shrikantgulia](#):
>
> even i checked PID

I'm not sure what OS you are on but if you are on a Unix-y OS, can you run `netstat -an` to see what connections are being made to your Elasticsearch host (even after stopping all Logstash and Filebeat processes)?

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [April 17, 2019, 5:38pm UTC](https://discuss.elastic.co/t/unable-to-stop-filebeat/177210/6 "2019-04-17T17:38:23Z")

</div>

I am on linux.  
Dont know why it is so  
I closed my filebeat at 1pm  
and still passing the logs

---

<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:** [May 15, 2019, 5:38pm UTC](https://discuss.elastic.co/t/unable-to-stop-filebeat/177210/7 "2019-05-15T17:38:28Z")

</div>

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