ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 94 - 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:

Setting the log-driver and log-opt keys to values for the logging solution (Splunk) in the daemon.json file will configure a Docker container to export container logs to the logging solution.This is because the Splunk logging driver sends container logs to the HTTP Event Collector in Splunk Enterprise and Splunk Cloud1.To use the Splunk driver as the default logging driver, set the keys log-driver and log-opts to appropriate values in the daemon.json configuration file and restart Docker1.To use the Splunk driver for a specific container, use the commandline flags --log-driver and log-opt with docker run1.The Splunk logging driver supports various options, such as splunk-token, splunk-url, splunk-source, splunk-sourcetype, splunk-index, etc1.Reference: Splunk logging driver | Docker Docs1

asked 08/11/2024
Aimé Tameti
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first