Autodiscover : not getting logs

Hi,
I've tried the autodiscover feature to get the logs of selenium grid nodes wrapped in docker containers (that are supposed to be scaled dynamically) and it does not seems to find it, the test i ran was with one container.
Here's my config :

filebeat.autodiscover:
  providers:
    - type: docker
      templates:
        - condition:
            contains:
              docker.container.image: node-chrome
          config:
            - type: docker
              containers.ids:
                - "${data.docker.container.id}"
              exclude_lines: ["^\\s+[\\-`('.|_]"]
output.logstash:
  hosts: ["elk:5044"] 
  • The name of the image of the chrome node is selenium/node-chrome:3.12.0-cobalt.
  • The filebeats is itself wrapped in a docker container and have the docker.sock shared by volume.
  • The filebeats docker container and the chrome node are on the same network

Thanks in advance :smile:

Hi @Theo_Delahayes,

The config looks good to me. I have some questions:

  • What version of Filebeat are you using?
  • Did you mount /var/lib/docker/containers folder into the Filebeat container? It needs it to access log files
  • Can you share your Filebeat logs?

Best regards

1 Like

Hi, and thanks for responding so fast @exekias.

The problem was that i didn't mount the /var/lib/docker/containersfolder, thanks for pointing it out :smiley:

Best regards

1 Like

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