# Filebeat exits silently when started with sudo and sudoreplay is installed

**URL:** <https://discuss.elastic.co/t/filebeat-exits-silently-when-started-with-sudo-and-sudoreplay-is-installed/98873>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 30, 2017, 2:54pm UTC](https://discuss.elastic.co/t/filebeat-exits-silently-when-started-with-sudo-and-sudoreplay-is-installed/98873 "2017-08-30T14:54:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlucia](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@mlucia](https://discuss.elastic.co/u/mlucia)\
**Post date:** [August 30, 2017, 2:54pm UTC](https://discuss.elastic.co/t/filebeat-exits-silently-when-started-with-sudo-and-sudoreplay-is-installed/98873/1 "2017-08-30T14:54:30Z")

</div>

After installing sudoreplay, filebeat (and likely the other beats) will fail silently when started with sudo, as in

sudo /etc/init.d/filebeat start

it will continue to run when started with the -f or --foreground flag

sudo /usr/share/filebeat/bin/filebeat-god -f -r / -n -p /var/run/filebeat.pid -- /usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat.yml

Has anyone been able to work around this issue?

---

<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:** [September 27, 2017, 2:54pm UTC](https://discuss.elastic.co/t/filebeat-exits-silently-when-started-with-sudo-and-sudoreplay-is-installed/98873/2 "2017-09-27T14:54:44Z")

</div>

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