Log Management Fundamentals Certification / 01 / 06

Logging Fundamentals

What this domain covers

In this domain, you learn the logging concepts that underpin using Datadog Log Management. There are three pillars. First, why logs are managed centrally, and how Datadog removes the traditional constraint of "choosing which logs to keep because of cost" (Logging without Limits). Second, log formats: why the official documentation recommends structured formats such as JSON, how to write messages that carry context, the attribute names for stack traces, and the per-event attribute limits. Third, log emission: where applications should write, which route and transport the Agent uses to send, and where the batch and size limits lie. The exam asks questions such as "which way of emitting logs does the official documentation recommend," "what is the value of this limit," and "why does this delay occur." The numbers are based on the official documentation as of September 2026.

Topics listed in the official guide

  • Logging Systems – Rationale & Justification
  • Logging Formats
  • Log Emission

Key points

  • Modern infrastructure generates thousands of logs per minute. The official documentation warns that filtering before sending leads to gaps in visibility and the accidental deletion of valuable data.
  • Logging without Limits decouples ingestion from indexing. All ingested logs can be processed, archived, explored, and monitored, while the volume to index is decided separately.
  • Log sources are classified as servers, containers, cloud, clients, and existing shippers (rsyslog, Fluentd, Logstash); replacing existing infrastructure is not a prerequisite.
  • The official documentation recommends configuring the logger for JSON output in Java, Python, Go, and Node.js alike. Stack traces are wrapped in a single event and attributes are extracted automatically.
  • Non-JSON logs require parsing rules. Even a prose-style message can have attributes extracted by the key value parser if it includes KEY=VALUE pairs.
  • The stack trace attributes with a dedicated display are logger.name, logger.thread_name, error.stack, error.message, and error.kind.
  • A log event converted to JSON has fewer than 2048 attributes, keys under 50 characters, nesting fewer than 20 levels, and faceted values under 1024 characters.
  • The basic pattern in each language's official procedure is "write to a file and tail it with the Agent." In containers, logs can be collected directly from standard output and standard error without a logging driver.
  • From Agent v6.19 / v7.19 onward, the default transport is compressed HTTPS. It switches to TCP only when the connectivity test at startup fails, and the decision does not change until a restart.
  • The HTTPS API limit is 1 MB per log, with 25 KB or less recommended. The Agent splits at 900 KB and sends batches of up to 1 MB and 1,000 logs, waiting at most 5 seconds.

Terms and concepts

Why Centralized Log Management (the Rationale for Logging Systems)

The official documentation positions logs as records of important parts of a system's behavior that are essential for keeping infrastructure healthy. However, because modern infrastructure can generate thousands of logs per minute, and cloud applications millions per minute, traditional log management forced teams to choose which logs to analyze and retain for cost efficiency. Yet filtering before sending creates gaps in visibility or accidentally discards data whose value only becomes clear later. Datadog Log Management takes removing this "you must choose" constraint itself as the starting point of its design.

Logging without Limits and the Separation of Ingestion and Indexing

Datadog separates log ingestion from indexing. Every ingested log can be processed by pipelines, sent to archives, used to generate metrics, and watched as it streams in Live Tail. Meanwhile, you can narrow which logs go into the indexes kept for search, so cost is controlled as "ingest everything, index only what you need." The documentation calls this Logging without Limits and describes it as the foundation for troubleshooting in the Log Explorer and for audit-oriented archives.

Classification of Log Sources and the Relationship with Existing Infrastructure

Logging sources are classified as servers, containers, cloud, clients, and others. On servers, collection is defined in the logs block of an integration's conf.yaml; in containers, the Agent collects from standard output. In the cloud, AWS logs can be forwarded from S3 or CloudWatch Log groups via Kinesis, and on clients the datadog-logs SDK for browsers is used. If you use rsyslog, Fluentd, or Logstash, plugins and forwarding options are available, and a complete replacement with the Agent is not a prerequisite.

The Basis for Governance (Daily Quotas, RBAC, and Audit Trail)

The best practices guide recommends putting governance, usage attribution, and budget controls in place because fluctuations in log volume can cause unexpected resource consumption. A daily quota on an index prevents billing overruns when a new log source is added or a developer accidentally switches to the debug level, and placing a monitor that notifies at 80% of the quota is recommended. With RBAC, you can create custom roles in addition to the default Admin, Standard, and Read-only roles so that only a limited set of people can change index retention or parsing settings. Audit Trail lets you trace who changed a setting.

Why Structured (JSON) Logs Are Recommended

Java and Python stack traces span multiple lines, so a single exception arrives as multiple log events. As the solution, the official documentation recommends configuring the logging library to output in JSON format. With JSON, the stack trace is wrapped in a single event, attributes such as severity and logger name are extracted correctly, and custom parsing rules become unnecessary. When Datadog receives JSON-formatted logs, it automatically parses them and extracts attributes. The Java, Python, Go, and Node.js documentation each include library configuration examples for JSON output.

Writing Messages That Carry Context

Even in a prose-style message, if you include KEY=VALUE pairs such as quantity=1001 or durationInMs=93180, the key value parser extracts them as attributes. Numbers become measures and strings become fields for filtering. Java's MDC is also a means of attaching attributes, but the official documentation cautions against using it for numbers because it only handles string types. The Go best practices recommend mapping logger names to features or services, logging the most important information first, and adding context with metadata. Go's FATAL corresponds to Emergency in Datadog.

Stack Trace Attributes and Per-Event Limits

To get the dedicated stack trace display, use the attribute names logger.name, logger.thread_name, error.stack, error.message, and error.kind. Integration pipelines remap logging library output to these by default. As per-event limits, a log event converted to JSON has fewer than 2048 attributes, keys under 50 characters, nesting fewer than 20 levels, faceted values under 1024 characters, and at most 100 tags of at most 256 characters each. Logs that exceed these limits may be transformed or truncated by the system.

Where Logs Are Written (Files and Tailing, Standard Output, Direct Submission)

The basic pattern in the official procedures is "write to a file with the logger and tail that file with the Agent." In containers, write to standard output and standard error, and the Agent collects directly without using a logging driver. On exceptional machines that cannot write to files, you can stream directly to the Agent's TCP listener, but this is not the recommended configuration. Sending directly to Datadog's intake over TCP is unsupported. When the Agent cannot be installed, there is Agentless logging, which sends to the Log API over HTTP. A line read by the Agent is not sent unless it is terminated by a newline.

The Agent's Transport (HTTPS by Default, TCP Fallback, Batching)

From Agent v6.19 / v7.19 onward, the default transport for logs is compressed HTTPS. The Agent runs an HTTPS connectivity test once at startup, uses compressed HTTPS if it succeeds and TCP if it fails, and does not change until the next restart. Behind a proxy, pin the transport with force_use_http or force_use_tcp. HTTPS batches are limited to 1 MB per batch, 900 KB per log, and 1,000 logs, and the Agent waits up to 5 seconds to fill a batch, so with few logs delivery can lag behind TCP. compression_level ranges from 0 to 9 with a default of 6.

Out of Scope for This Domain

The official exam guide places Cross-product Applications of Logs (correlating logs with traces and metrics, and integration with RUM and Security) and Observability Pipelines out of scope. The log collection documentation has a section on injecting trace_id and span_id into logs to tie them to APM, but this correlation feature is not tested on this exam. The same applies to Observability Pipelines, which pre-processes logs in a collector before they leave your environment. Focus your study on how logs are generated, collected, viewed, and used.

Check your understanding

Check what you have learned with 5 questions