# Filebeat process exits daily automatically

**URL:** <https://discuss.elastic.co/t/filebeat-process-exits-daily-automatically/74925>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 13, 2017, 7:42pm UTC](https://discuss.elastic.co/t/filebeat-process-exits-daily-automatically/74925 "2017-02-13T19:42:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![harshavardan25000](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@harshavardan25000](https://discuss.elastic.co/u/harshavardan25000)\
**Post date:** [February 13, 2017, 7:42pm UTC](https://discuss.elastic.co/t/filebeat-process-exits-daily-automatically/74925/1 "2017-02-13T19:42:36Z")

</div>

Hi,

The filebeat process exits automatically everyday. I manually start it every day for the agent to start shipping.  
The command I use to start the process is

sudo nohup ./filebeat -c /etc/filebeat/filebeat.yml -e &

Really appreciate any help in identifying where I go wrong.

Thanks

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [February 14, 2017, 10:58am UTC](https://discuss.elastic.co/t/filebeat-process-exits-daily-automatically/74925/2 "2017-02-14T10:58:57Z")

</div>

Any reason for not using our init script or systemd unit files? Daemonizing go programs can be a little tricky, so nohup might be not enough.

---

<div class="post-metadata">

**Author:** ![harshavardan25000](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@harshavardan25000](https://discuss.elastic.co/u/harshavardan25000)\
**Post date:** [February 15, 2017, 3:54pm UTC](https://discuss.elastic.co/t/filebeat-process-exits-daily-automatically/74925/3 "2017-02-15T15:54:48Z")

</div>

Oh ok I did not know we can start it via init. Sorry relatively new to elk stack. I will try using init script to start it and will let you know the result. Appreciate your help.

---

<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 15, 2017, 3:55pm UTC](https://discuss.elastic.co/t/filebeat-process-exits-daily-automatically/74925/4 "2017-03-15T15:55:13Z")

</div>

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