Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filebeat autodiscovery for docker broken since 8.12 #31

Open
daudo opened this issue Oct 24, 2024 · 0 comments
Open

filebeat autodiscovery for docker broken since 8.12 #31

daudo opened this issue Oct 24, 2024 · 0 comments

Comments

@daudo
Copy link

daudo commented Oct 24, 2024

while as per .env file, this project is still at version 8.7.1, newer versions of filebeat have changed/broken the way how autodiscovery works for containers not running in k8s.

See this thread for a better description https://discuss.elastic.co/t/filebeat-docker-autodiscovery-stopped-working-when-i-upgraded-to-8-12-0/353103

For this reason, the filebeat.yml of this project does not allow filebeat to process Docker logs.

What worked for me is so change the filebeat.autodiscover in filebeat.yml section to this:

filebeat:
  autodiscover:
    providers:
    - hints.default_config:
        paths:
        - /var/lib/docker/containers/${data.container.id}/*.log
        type: container
      hints.enabled: true
      type: docker

If you wish, I can also produce a PR for this (I may also produce another one for podman support).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant