-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
Team:Elastic-Agent-Data-PlaneLabel for the Agent Data Plane teamLabel for the Agent Data Plane team
Description
Filebeat add_docker_metadata processor is not working if filebeat starts before docker. First seen with rootless docker. Tested with rootless and rootfull docker.
- Version: 9.0.2
- Operating System: Debian 12
- Steps to Reproduce:
- Configure Filebeat to read docker container logs with the use of the add_docker_metadata processor.
- Generate some logs:
docker run -d --restart unless-stopped alpine:latest sh -c 'for i in `seq 1 999`; do sleep 1; echo $i; done'
-
- Check the appended metadata in output (present - as expected).
- Restart filebeat:
systemctl restart filebeat.service
- Check the appended metadata in output (present - as expected).
- Stop docker:
systemctl stop docker.service docker.socket
- Restart filebeat: systemctl restart filebeat.service
- Start docker:
systemctl start docker.service
- Check the appended metadata in output (missing - not expected).
- Restart filebeat:
systemctl restart filebeat.service
- Check the appended metadata in output (present - as expected).
Metadata
Metadata
Assignees
Labels
Team:Elastic-Agent-Data-PlaneLabel for the Agent Data Plane teamLabel for the Agent Data Plane team