# Filebeat exiting

**URL:** <https://discuss.elastic.co/t/filebeat-exiting/366845>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 20, 2024, 3:21am UTC](https://discuss.elastic.co/t/filebeat-exiting/366845 "2024-09-20T03:21:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BINDUN26](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@BINDUN26](https://discuss.elastic.co/u/BINDUN26)\
**Post date:** [September 20, 2024, 3:21am UTC](https://discuss.elastic.co/t/filebeat-exiting/366845/1 "2024-09-20T03:21:25Z")

</div>

filebeat.service - LSB: Filebeat sends log files to Logstash or directly to Elasticsearch.  
Loaded: loaded (/etc/init.d/filebeat; generated)  
Active: active (exited) since Fri 2024-09-20 08:48:04 IST; 13s ago  
Docs: man:systemd-sysv-generator(8)  
Process: 1514285 ExecStart=/etc/init.d/filebeat start (code=exited, status=0/SUCCESS)  
CPU: 3ms

Sep 20 08:48:04 webminsquid systemd[1]: Starting LSB: Filebeat sends log files to Logstash or directly to Elasticsearch....  
Sep 20 08:48:04 webminsquid systemd[1]: Started LSB: Filebeat sends log files to Logstash or directly to Elasticsearch

---

<div class="post-metadata">

**Author:** ![OneWhoKnowsNothing](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@OneWhoKnowsNothing](https://discuss.elastic.co/u/OneWhoKnowsNothing)\
**Post date:** [September 23, 2024, 3:33pm UTC](https://discuss.elastic.co/t/filebeat-exiting/366845/2 "2024-09-23T15:33:18Z")

</div>

Please try the following command  
filebeat -e -d "\*" -c {config file location}

with this you can do a debug test that will not send anything to logstash, elastic or opensearch and it will provide you with a preview of component executions.

**`-e, --e`**  
Logs to stderr and disables syslog/file output.

**`-d, --d SELECTORS`**  
Enables debugging for the specified selectors. For the selectors, you can specify a comma-separated list of components, or you can use `-d "*"` to enable debugging for all components. For example, `-d "publisher"` displays all the publisher-related messages.

**`-c, --c FILE`**  
Specifies the configuration file to use for Filebeat. The file you specify here is relative to `path.config`. If the `-c` flag is not specified, the default config file, `filebeat.yml`, is used.
