Autodiscover : not getting logs

(Theo Delahayes) #1

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 :

    - type: docker
        - condition:
              docker.container.image: node-chrome
            - type: docker
                - "${}"
              exclude_lines: ["^\\s+[\\-`('.|_]"]
  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:

(Carlos PĂ©rez Aradros) #2

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

(Theo Delahayes) #3

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

(system) #4

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