# Filebeat cannot find /etc/filebeat/filebeat.yml on Windows server

**URL:** <https://discuss.elastic.co/t/filebeat-cannot-find-etc-filebeat-filebeat-yml-on-windows-server/34439>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 12, 2015, 4:43pm UTC](https://discuss.elastic.co/t/filebeat-cannot-find-etc-filebeat-filebeat-yml-on-windows-server/34439 "2015-11-12T16:43:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheWinterWizard](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@TheWinterWizard](https://discuss.elastic.co/u/TheWinterWizard)\
**Post date:** [November 12, 2015, 4:43pm UTC](https://discuss.elastic.co/t/filebeat-cannot-find-etc-filebeat-filebeat-yml-on-windows-server/34439/1 "2015-11-12T16:43:38Z")

</div>

I've been banging my head against this for a while now, and no matter what I do (installing from .zip, running from .exe release, or running from what `go get` brings me), I'm unable to even execute filebeat.exe because it cannot find the path to filebeat.yml. What's odd is that I'm looking at that very path to filebeat.yml.

I also can't seem to get the service to install from git bash or powershell, because godep is not recognized, despite the fact that I've installed it.

I have environment variables set for Go (which I've installed to C:\Go), it's added to my path and I'm able to run Go commands from both git bash and powershell.

Am I just missing something silly, or have I gone about this the entirely wrong way? I can provide any further config/output if it would be helpful

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 12, 2015, 7:32pm UTC](https://discuss.elastic.co/t/filebeat-cannot-find-etc-filebeat-filebeat-yml-on-windows-server/34439/2 "2015-11-12T19:32:47Z")

</div>

Use a prebuilt binary and use the `-c` option to change the path to the configuration file. Having /etc/filebeat/filebeat.yml as the default on Windows doesn't make sense but I don't know what would be a more sensible default.

---

<div class="post-metadata">

**Author:** ![TheWinterWizard](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@TheWinterWizard](https://discuss.elastic.co/u/TheWinterWizard)\
**Post date:** [November 17, 2015, 5:08pm UTC](https://discuss.elastic.co/t/filebeat-cannot-find-etc-filebeat-filebeat-yml-on-windows-server/34439/3 "2015-11-17T17:08:47Z")

</div>

I totally forgot to reply to this. It worked, thanks!

For anybody struggling to get it to install as a service, edit the install script to point to the executable and yml file without relying on $workdir. In mycase it was: `C:\Filebeat\filebeat.exe -c C:\Filebeat\filebeat.yml`

---

<div class="post-metadata">

**Author:** ![usahitya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/usahitya/32/6180_2.png) [@usahitya](https://discuss.elastic.co/u/usahitya)\
**Post date:** [November 26, 2015, 7:49am UTC](https://discuss.elastic.co/t/filebeat-cannot-find-etc-filebeat-filebeat-yml-on-windows-server/34439/4 "2015-11-26T07:49:48Z")

</div>

Hi ,

Is Filebeat works with Windows2008R2 server?

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [November 26, 2015, 10:47am UTC](https://discuss.elastic.co/t/filebeat-cannot-find-etc-filebeat-filebeat-yml-on-windows-server/34439/5 "2015-11-26T10:47:25Z")

</div>

@usahitya Yes, it should work also with Windows2008R2, but be aware that we mainly test on 2012. Please let us know in case there are some issues.

---

<div class="post-metadata">

**Author:** ![usahitya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/usahitya/32/6180_2.png) [@usahitya](https://discuss.elastic.co/u/usahitya)\
**Post date:** [November 26, 2015, 10:51am UTC](https://discuss.elastic.co/t/filebeat-cannot-find-etc-filebeat-filebeat-yml-on-windows-server/34439/6 "2015-11-26T10:51:33Z")

</div>

Hi Thanks for your answer @ruflin  
Is there any document about how to install in Windows system. I didn't found any from [this page.](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-getting-started.html)

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [November 26, 2015, 1:44pm UTC](https://discuss.elastic.co/t/filebeat-cannot-find-etc-filebeat-filebeat-yml-on-windows-server/34439/7 "2015-11-26T13:44:35Z")

</div>

Best is to directly download the windows binary here and install it: [https://www.elastic.co/downloads/beats/filebeat](https://www.elastic.co/downloads/beats/filebeat)

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [December 2, 2015, 4:10pm UTC](https://discuss.elastic.co/t/filebeat-cannot-find-etc-filebeat-filebeat-yml-on-windows-server/34439/8 "2015-12-02T16:10:28Z")

</div>

@usahitya We are also working on improving the docs for the windows setup. [https://github.com/elastic/libbeat/issues/343](https://github.com/elastic/libbeat/issues/343)

---

<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 5, 2017, 9:57pm UTC](https://discuss.elastic.co/t/filebeat-cannot-find-etc-filebeat-filebeat-yml-on-windows-server/34439/9 "2017-07-05T21:57:46Z")

</div>


