# Filebeat config error while configtest

**URL:** https://discuss.elastic.co/t/filebeat-config-error-while-configtest/90602
**Category:** Beats
**Tags:** filebeat
**Created:** [June 23, 2017, 9:08am UTC](https://discuss.elastic.co/t/filebeat-config-error-while-configtest/90602 "2017-06-23T09:08:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)
#### Post date: [June 23, 2017, 9:08am UTC](https://discuss.elastic.co/t/filebeat-config-error-while-configtest/90602/1 "2017-06-23T09:08:02Z")

</div>

root@dev01:/usr/share/filebeat/bin# ./filebeat -configtest -e  
filebeat2017/06/23 09:06:57.152936 beat.go:339: CRIT Exiting: error loading config file: stat filebeat.yml: no such file or directory  
Exiting: error loading config file: stat filebeat.yml: no such file or directory

---

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [June 23, 2017, 10:25am UTC](https://discuss.elastic.co/t/filebeat-config-error-while-configtest/90602/2 "2017-06-23T10:25:23Z")

</div>

where is your `filebeat.yml`? How did you install filebeat? When running from /usr/share/filebeat/bin, it looks for the configuration file in your current path. Filebeat deb/rpm packages install a wrapper script, so you can run `filebeat -configtest -e`. The script sets some defaults configurations, like the config file path to /etc/filebeat/filebeat.yml.

---

<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: [July 21, 2017, 10:25am UTC](https://discuss.elastic.co/t/filebeat-config-error-while-configtest/90602/3 "2017-07-21T10:25:24Z")

</div>

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