Open kflan-hrp opened 10 months ago
I found a workaround via forcing env var substitution, which gets the logs-agent to start, but I can't seem to send logs into that port. The connection from nc
on MacOS just auto-closes, or the AWS Load Balance health check fails.
-e LOG_PORT=10518 \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-l com.datadoghq.ad.logs='[{
"source": "abc",
"service": "abc",
"type": "tcp",
"port": "%%env_LOG_PORT%%"
I'm trying to run a datadog agent to allow for log collecting from another service we run. I'd like to do this without doing a docker build just to add a yaml file to the container for a few lines of configuration. So I'm trying to do it from a docker label.
Agent Environment
agent version
7.48.1 from the public repositoryenv var: { "name": "DD_LOGS_ENABLED", "value": "true" },
AWS Fargate Task Container dockerLabels "com.datadoghq.ad.logs": "[{\"source\":\"abc\",\"service\":\"abc\",\"type\":\"tcp\",\"port\":10518}]",
Error logs:
or when I try putting the port in quotes
Docker repro .sh