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


(Maxim Ozerov) #1

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:

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)


(Maxim Ozerov) #2

I found the answer in Cannot connect to the Docker daemon


(system) #3

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