Subdomain 1.2: Log Sources
1.Which statement best describes how the Datadog Agent gathers log data from a host once log collection is enabled?
- A.It tails specified log files and can also listen for logs sent over UDP or TCP
- B.It only reads logs written to the system journal and ignores flat files
- C.It polls a remote Datadog API every hour to pull historical log files
- D.It requires a Kubernetes DaemonSet even when running directly on a host
Show answer & explanation
Correct answer: A — It tails specified log files and can also listen for logs sent over UDP or TCP
- A. Once enabled, the Agent tails configured log files for new lines and can also listen on UDP or TCP sockets to receive logs sent over the network.
- B. Limiting collection to the system journal alone is inaccurate; the Agent is commonly configured to tail arbitrary log files, not just journal output.
- C. The Agent does not operate by polling a Datadog API to pull historical files; it actively collects log data locally as it is written or received.
- D. A DaemonSet is a Kubernetes deployment pattern for running one Agent pod per node; it is not required for the Agent to collect logs on a standalone host.