# Filebeat getting restarted even after stopping it. what should i do?

**URL:** https://discuss.elastic.co/t/filebeat-getting-restarted-even-after-stopping-it-what-should-i-do/149657
**Category:** Beats
**Tags:** filebeat
**Created:** [September 24, 2018, 11:33am UTC](https://discuss.elastic.co/t/filebeat-getting-restarted-even-after-stopping-it-what-should-i-do/149657 "2018-09-24T11:33:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pramodchoudhari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pramodchoudhari/32/126902_2.png) [@pramodchoudhari](https://discuss.elastic.co/u/pramodchoudhari)
#### Post date: [September 24, 2018, 11:33am UTC](https://discuss.elastic.co/t/filebeat-getting-restarted-even-after-stopping-it-what-should-i-do/149657/1 "2018-09-24T11:33:49Z")

</div>

i am killing the filebeat process but even after stopping it filebeat process gets restarted again what should i do ?  
Please help!!

---

<div class="post-metadata">

### Author: ![Debashis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debashis/32/45290_2.png) [@Debashis](https://discuss.elastic.co/u/Debashis)
#### Post date: [September 24, 2018, 12:10pm UTC](https://discuss.elastic.co/t/filebeat-getting-restarted-even-after-stopping-it-what-should-i-do/149657/2 "2018-09-24T12:10:38Z")

</div>

Hi @pramodchoudhari,

I think you are executing filebeat using systemctl .

So when you executes filebeat using systemctl, then it will be restarted by default when any kind of signal is passed to the filebeat process because of "Restart" parameter in "filebeat.service" file.

To overcome this you have to change the value of "Restart" parameter to "none" or as per your requirement.

The location of the service file is :

**_"/usr/lib/systemd/system/filebeat.service"_**

---

<div class="post-metadata">

### Author: ![pramodchoudhari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pramodchoudhari/32/126902_2.png) [@pramodchoudhari](https://discuss.elastic.co/u/pramodchoudhari)
#### Post date: [September 24, 2018, 12:12pm UTC](https://discuss.elastic.co/t/filebeat-getting-restarted-even-after-stopping-it-what-should-i-do/149657/3 "2018-09-24T12:12:48Z")

</div>

the file in given path does not exists 🙂

---

<div class="post-metadata">

### Author: ![Debashis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debashis/32/45290_2.png) [@Debashis](https://discuss.elastic.co/u/Debashis)
#### Post date: [September 24, 2018, 12:14pm UTC](https://discuss.elastic.co/t/filebeat-getting-restarted-even-after-stopping-it-what-should-i-do/149657/4 "2018-09-24T12:14:27Z")

</div>

May be in your system it is located somewhere else, Can you kindly verify this using "find" command

# find / -name filebeat.service

---

<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 22, 2018, 12:14pm UTC](https://discuss.elastic.co/t/filebeat-getting-restarted-even-after-stopping-it-what-should-i-do/149657/5 "2018-10-22T12:14:29Z")

</div>

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