Bird
0
0

A user runs:

medium📝 Troubleshoot Q7 of 15
Docker - Logging and Monitoring
A user runs:
docker run --log-driver=syslog --log-opt syslog-facility=daemon myimage
But logs are not appearing in syslog. What is a possible error?
ADocker does not support syslog logging driver
BThe syslog-facility option is invalid and causes failure
CThe --log-driver flag must be set to json-file for syslog
DThe syslog server is not configured to accept logs from Docker
Step-by-Step Solution
Solution:
  1. Step 1: Confirm Docker supports syslog driver and syntax

    Docker supports syslog driver and the option syslog-facility is valid.
  2. Step 2: Check syslog server configuration

    If syslog server is not set to accept Docker logs, logs won't appear.
  3. Final Answer:

    The syslog server is not configured to accept logs from Docker -> Option D
  4. Quick Check:

    Syslog server must accept Docker logs for syslog driver to work [OK]
Quick Trick: Syslog server must be configured to receive Docker logs [OK]
Common Mistakes:
  • Assuming syslog-facility is invalid
  • Thinking json-file needed for syslog
  • Believing Docker lacks syslog support

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes