# Filebeat failed to load config file - no such file

**URL:** https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857
**Category:** Beats
**Tags:** filebeat
**Created:** [January 7, 2017, 2:32pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857 "2017-01-07T14:32:32Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Rinat](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Rinat](https://discuss.elastic.co/u/Rinat)
#### Post date: [January 7, 2017, 2:32pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/1 "2017-01-07T14:32:33Z")

</div>

I've been trying to befriend Elastic Stack but so far it's not liking me, I guess.

I've scrolled through the forum, however, I did not find any post with the same issue. I'm sure it's simple but I can't figure out.

So, whenever I try to run ./filebeat or ./filebeat -configtest -e it throws the error below.

-bash$ ./filebeat -configtest -e  
Exiting: error loading config file: open filebeat.yml: no such file or directory

I thought it was installation error, so I tried to install Filebeat on two different machines and both times it gives me the same error. I used repository to install. I'm assuming I'm making a mistake in the installation process, even though all of the directories are where they supposed to be.

Thanks for the help in advance

---

<div class="post-metadata">

### Author: ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)
#### Post date: [January 7, 2017, 4:38pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/2 "2017-01-07T16:38:01Z")

</div>

Hi @Rinat, is the `filebeat.yml` present at your installation folder?

---

<div class="post-metadata">

### Author: ![Rinat](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Rinat](https://discuss.elastic.co/u/Rinat)
#### Post date: [January 7, 2017, 4:42pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/3 "2017-01-07T16:42:21Z")

</div>

I confirmed that it is present in /etc/filebeat. Is that what you are referring to? I also check the file itself and only made changes for Logstash output.

---

<div class="post-metadata">

### Author: ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)
#### Post date: [January 7, 2017, 4:46pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/4 "2017-01-07T16:46:22Z")

</div>

Can you please try `-c path_to_filebeat.yml`

---

<div class="post-metadata">

### Author: ![Rinat](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Rinat](https://discuss.elastic.co/u/Rinat)
#### Post date: [January 7, 2017, 4:58pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/5 "2017-01-07T16:58:07Z")

</div>

If I do ./filebeat -c path\_to\_filebeat.yml it just hangs on empty output and does not do anything. Am I using the wrong command?

Thanks for your help!

---

<div class="post-metadata">

### Author: ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)
#### Post date: [January 7, 2017, 5:03pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/6 "2017-01-07T17:03:43Z")

</div>

please try `./filebeat -c path_to_yml -e -d "*"` and post the output.

---

<div class="post-metadata">

### Author: ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)
#### Post date: [January 7, 2017, 5:05pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/7 "2017-01-07T17:05:35Z")

</div>

But i think it was the missing `-c` switch. If there is no output it seems to running.

---

<div class="post-metadata">

### Author: ![Rinat](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Rinat](https://discuss.elastic.co/u/Rinat)
#### Post date: [January 7, 2017, 5:15pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/8 "2017-01-07T17:15:08Z")

</div>

Ok, thanks. It worked better. I could see logs which is a good thing. However, now I'm having a different issue. In the debug message, one came up as ERR stating that Harvester could not open some of the files - permission denied. Which isn't a problem. But I don't know what this one is : 2017/01/07 17:14:09.899275 registrar.go:297: ERR Failed to create tempfile (/usr/share/filebeat/bin/data/registry.new) for writing: open /usr/share/filebeat/bin/data/registry.new: permission denied. Do I have to explicitly grant permissions to that file?

---

<div class="post-metadata">

### Author: ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)
#### Post date: [January 7, 2017, 5:26pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/9 "2017-01-07T17:26:51Z")

</div>

you can set the `path.data` location to a path where you have permission to write to. See [here](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-path.html). Otherwise you have to change the permissions for the default path for your account under which fiebeat is running.

---

<div class="post-metadata">

### Author: ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)
#### Post date: [January 7, 2017, 5:28pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/10 "2017-01-07T17:28:19Z")

</div>

Also look [here](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-global-options.html) for the part `registry_file`

---

<div class="post-metadata">

### Author: ![Rinat](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Rinat](https://discuss.elastic.co/u/Rinat)
#### Post date: [January 7, 2017, 5:34pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/11 "2017-01-07T17:34:01Z")

</div>

Great! Thanks a lot for your help. Besides those secondary things, it appears to be working. And as I suspected it was something as simple as declaring path to the file.

---

<div class="post-metadata">

### Author: ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)
#### Post date: [January 7, 2017, 6:18pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/12 "2017-01-07T18:18:32Z")

</div>

Fine to hear it works now!

---

<div class="post-metadata">

### Author: ![Rinat](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Rinat](https://discuss.elastic.co/u/Rinat)
#### Post date: [January 7, 2017, 6:41pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/13 "2017-01-07T18:41:03Z")

</div>

Thanks again. I still have a long way to go. Trying to learn and implement Elastic Stack from ground 0. And it's like every new step I have to conduct a research))).  
I'm glad there is very helpful community over here!

---

<div class="post-metadata">

### Author: ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)
#### Post date: [January 7, 2017, 6:53pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/14 "2017-01-07T18:53:41Z")

</div>

Thanks for that feedback! 👍 Should you have any further questions do not hesitate to ask!

---

<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: [February 4, 2017, 6:54pm UTC](https://discuss.elastic.co/t/filebeat-failed-to-load-config-file-no-such-file/70857/15 "2017-02-04T18:54:00Z")

</div>

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