ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 132 - DCA discussion

Report
Export

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. Set the log-driver-and log-opt keys to values for the logging solution (Splunk) in the daemon.json file.

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: A

Explanation:

To configure a Docker container to export container logs to a logging solution such as Splunk, you need to set the log-driver and log-opt keys to values for the logging solution in the daemon.json file.This will enable the Splunk logging driver, which sends container logs to HTTP Event Collector in Splunk Enterprise and Splunk Cloud1.You can also use the command-line flags --log-driver and --log-opt with docker run to use the Splunk driver for a specific container1.Reference:

Splunk logging driver | Docker Docs

Collecting docker logs and stats with Splunk | Splunk

How to send Docker containers logs to Splunk?

Splunk Logging Driver for Docker | Splunk

asked 08/11/2024
David Stutz
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first