Bird
0
0

You run:

medium📝 Troubleshoot Q6 of 15
Docker - Logging and Monitoring
You run:
docker run --log-driver=fluentd --log-opt fluentd-address=fluentd-server:24224 myapp

but no logs appear in Fluentd. What is the most probable cause?
AThe container image 'myapp' does not generate logs
BThe hostname 'fluentd-server' cannot be resolved by the Docker host
CThe Docker daemon does not support the fluentd log driver
DFluentd requires logs to be sent over UDP, not TCP
Step-by-Step Solution
Solution:
  1. Step 1: Check fluentd-address

    The address uses a hostname 'fluentd-server' which must be resolvable.
  2. Step 2: DNS resolution

    If the Docker host cannot resolve this hostname, logs won't reach Fluentd.
  3. Final Answer:

    The hostname 'fluentd-server' cannot be resolved by the Docker host -> Option B
  4. Quick Check:

    Verify hostname resolution from Docker host [OK]
Quick Trick: Hostname resolution failure blocks log forwarding [OK]
Common Mistakes:
  • Assuming image log generation is the issue
  • Ignoring DNS resolution problems
  • Misunderstanding Fluentd transport protocols

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes