# Filebeat autodiscover: When running on windows filebeat can not be started

**URL:** <https://discuss.elastic.co/t/filebeat-autodiscover-when-running-on-windows-filebeat-can-not-be-started/153801>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 24, 2018, 1:00pm UTC](https://discuss.elastic.co/t/filebeat-autodiscover-when-running-on-windows-filebeat-can-not-be-started/153801 "2018-10-24T13:00:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxim\_Ozerov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maxim_ozerov/32/36881_2.png) [@Maxim\_Ozerov](https://discuss.elastic.co/u/Maxim_Ozerov)\
**Post date:** [October 24, 2018, 1:00pm UTC](https://discuss.elastic.co/t/filebeat-autodiscover-when-running-on-windows-filebeat-can-not-be-started/153801/1 "2018-10-24T13:00:14Z")

</div>

On windows when adding configuration for autodiscover filebeat can not be started and there is the following error appears:

_Exiting: error in autodiscover provider settings: error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.22/containers/json?limit=0: dial tcp: lookup /var/run/docker.sock: no such host_

I believe it should not use unix socket but instead try to connect via tcp on windows?

Filebeat.yml has the following:

```auto
filebeat.autodiscover:
    providers:
      - type: docker        
        templates:
          - condition:
              contains:
                docker.container.image: app
            config:
              - type: docker
                containers.ids:
                  - "${data.docker.container.id}"
                scan_frequency: 10s

```

Docker version 18.06.1-ce, build e68fc7a  
Filebeat version: 6.4.2

Filebeat is running as windows executable (filebeat.exe)

---

<div class="post-metadata">

**Author:** ![Maxim\_Ozerov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maxim_ozerov/32/36881_2.png) [@Maxim\_Ozerov](https://discuss.elastic.co/u/Maxim_Ozerov)\
**Post date:** [October 25, 2018, 11:19am UTC](https://discuss.elastic.co/t/filebeat-autodiscover-when-running-on-windows-filebeat-can-not-be-started/153801/2 "2018-10-25T11:19:22Z")

</div>

I found the answer in [Cannot connect to the Docker daemon](https://discuss.elastic.co/t/cannot-connect-to-the-docker-daemon/135406/5)

---

<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:** [November 22, 2018, 11:31am UTC](https://discuss.elastic.co/t/filebeat-autodiscover-when-running-on-windows-filebeat-can-not-be-started/153801/3 "2018-11-22T11:31:08Z")

</div>

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