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.
Suggested Answer: D
Get Premium DCA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
42 comments · newest first
MA
Marget
11 months ago
Definitely, Splunk needs those log-driver settings!
EL
Elza
11 months ago
Nope, you need to set up more than just that.
CA
Carmelina
12 months ago
Wait, are you sure? I thought it was more complicated.
JE
Jesus
12 months ago
Totally agree, the daemon.json is key here.
KA
Kathryn
12 months ago
Yes, that's how you configure it!
EA
Earleen
1 year ago
I feel like I've seen this before, and it seems like the correct answer is "Yes," but I can't recall the exact details of the configuration.
JE
Jess
1 year ago
I’m a bit confused. I thought the logging configuration might be done at the container level instead of the daemon.json file.
BU
Buddy
1 year ago
I remember a practice question where we had to configure logging for a different service, and it involved similar steps. So, I’m leaning towards "Yes."
RE
Reynalda
1 year ago
I think setting the log-driver and log-opt in the daemon.json is the right approach, but I'm not entirely sure if it applies specifically to Splunk.
MA
Maybelle
1 year ago
Okay, let me see. I'm pretty sure you need to search the Software Catalog first before you can request anything, so I'll go with A.
VI
Vivienne
1 year ago
Integrity, for sure. That's the whole point of cryptographic systems - to make sure the message gets to the receiver exactly as it was sent.
TA
Tarra
1 year ago
I've got a good feeling about PGP for this one. It's a widely used encryption system that leverages public-key cryptography, and it's commonly used for securing email communications. I'll go with that as my final answer.
VE
Verda
1 year ago
Splunk, huh? I wonder if they have a plugin for 'Why is my container not working?' logs.
AL
Alesia
1 year ago
Yes
HI
Hildegarde
1 year ago
No
CE
Cecilia
1 year ago
Yes
DE
Denna
1 year ago
Centralized logging? That's just fancy talk for 'dump all the logs into a big pile and hope someone can find what they need.'
JO
Jospeh
1 year ago
Wait, we're supposed to edit the daemon.json file? That sounds like a job for the DevOps team. I'll just stick to running my containers and let the sysadmins handle the logging stuff.
QU
Queen
1 year ago
B) True, as a container user, our main focus is running containers. Let the sysadmins take care of the logging setup.
SH
Sherell
1 year ago
A) Yeah, editing the daemon.json file is usually done by the DevOps team. They handle the configuration for logging solutions like Splunk.
NI
Nickolas
1 year ago
B) No
RO
Rodrigo
1 year ago
A) Yes
AL
Alita
1 year ago
Ah, I see what they're going for. If you've got a centralized logging solution like Splunk, this is the way to get your container logs into it. Easy peasy!
AL
Alonzo
1 year ago
A) Yes
PE
Peggy
1 year ago
That's right! Setting the log-driver-and log-opt keys in the daemon.json file will allow Docker containers to export logs to Splunk.
DO
Doretha
1 year ago
A) Yes
WI
Wilburn
1 year ago
Hmm, I'm not so sure. Doesn't this just configure the Docker daemon, not the individual containers? I'll have to double-check the documentation on that.
JO
Joaquin
1 year ago
User 3: I think it only configures the Docker daemon
AN
Annmarie
1 year ago
User 2: No
MA
Marcos
1 year ago
User 1: Yes
ST
Starr
1 year ago
Sure, that's what the question is asking for. Setting the log-driver and log-opt keys in the daemon.json file should do the trick.
CO
Colby
1 year ago
Exactly, that should export the container logs to the centralized logging solution.
SH
Sharmaine
1 year ago
So, we just need to configure the log-driver and log-opt keys in the daemon.json file.
LA
Larae
1 year ago
Great, thanks for confirming!
MA
Margarett
1 year ago
Yes
DI
Dion
1 year ago
Exactly, that should export the container logs to the centralized logging solution.
JU
Jutta
1 year ago
So, we just need to configure the log-driver and log-opt keys in the daemon.json file.
ET
Ettie
1 year ago
Great, thanks for confirming!
SA
Sabrina
1 year ago
Yes
LI
Lindy
1 year ago
No, I prefer to keep logs within the container for security reasons.
FL
Florinda
1 year ago
I think it's a good idea to centralize logging with Splunk for better monitoring and analysis.
MI
Micheline
2 years ago
Yes, it will configure a Docker container to export logs to Splunk.