Open sfuerte opened 2 years ago
I have meet the same situation , and not found the log "Could not setup the docker launcher" from my agent.log record which is from here https://docs.datadoghq.com/logs/guide/docker-logs-collection-troubleshooting-guide/#status-pending
my agent version: 7.34.0
Hi, IoT Agent doesn't support pulling logs from Docker directly but does support it using journald
. For this to happen you need to change the type
in your logs config and updated it with an extra flag as follows:
logs:
- type: journald
container_mode: true
This assumes you have set-up your Docker daemon to use journald
as the logging driver. You may need to filter out the units you're not interested in. More details on this can be found in our docs here.
Agent Environment
Describe what happened: despite proper configuration and journal logs that Docker/
containerd
environments are detected, the Docker container logs are not showing in Datadog."proper configuration" - exactly the same config for full version of Datadog agent works fine.
Journal logs upon start of the IoT agent:
as per Agent status output, Docker log agent stuck at "pending" status (excerpt):
Describe what you expected: the same behaviour as for the full Agent version, i.e. Docker logs are streamed to Datadog Cloud.
Steps to reproduce the issue: see above
Additional environment details (Operating System, Cloud provider, etc):