DCA · Question #137
Your organization has a centralized logging solution, such as Splunk. Will this configure a Docker container to export container logs to the logging solution? Solution: docker system events --filter…
The correct answer is B. No. The docker system events command streams Docker daemon events, not application logs, and cannot be used to configure log export to an external solution like Splunk.
Question
Your organization has a centralized logging solution, such as Splunk. Will this configure a Docker container to export container logs to the logging solution? Solution: docker system events --filter splunk
Options
- AYes
- BNo
How the community answered
(33 responses)- A6% (2)
- B94% (31)
Why each option
The `docker system events` command streams Docker daemon events, not application logs, and cannot be used to configure log export to an external solution like Splunk.
This command only provides a stream of Docker daemon activity and does not configure how container application logs are collected or forwarded to external logging systems.
The `docker system events` command is used for monitoring real-time events from the Docker daemon (e.g., container lifecycle events, image operations) and does not provide functionality to configure or export container application logs to a centralized logging solution. The `--filter splunk` option is also not a valid way to specify a logging driver.
Concept tested: Docker logging configuration vs. system events
Source: https://docs.docker.com/engine/reference/commandline/system_events/
Topics
Community Discussion
No community discussion yet for this question.