Wiki hub
Logs
Timestamped, discrete records of events — the most detailed and most expensive of the observability signals.
Last updated
Logs are discrete, timestamped events emitted by applications and infrastructure — a request handled, an error thrown, a background job completed. They are the most granular of the three original observability pillars, and usually the most expensive to store and search at volume.
Modern practice favors structured logging (JSON or key-value fields) over free-text messages, since structured fields can be indexed, filtered, and aggregated far more cheaply and reliably than parsing plain text after the fact.
Why logs matter
- They carry arbitrary detail. A log line can contain anything a developer decided was worth recording — a stack trace, a request payload, a business identifier — with no fixed schema.
- They’re the source of truth for “what exactly happened.” When a metric shows an anomaly and a trace shows which service was involved, logs from that exact request usually explain the specific cause.
- They support audit and compliance. Many regulatory and security requirements are only satisfiable with a durable, detailed event record — which is what logs provide.
Key concepts
- Structured vs. unstructured logging. Structured logs (e.g., JSON with consistent field names) are dramatically cheaper to query and correlate than free-text logs parsed with regexes at query time.
- Log levels. DEBUG, INFO, WARN, ERROR and similar levels let teams control verbosity and cost, and filter noise during incident response.
- Correlation IDs. Attaching a trace ID or request ID to every log line is what allows you to jump directly from a slow span in a trace to the exact logs it produced.
- Retention and cost. Because log volume scales with traffic, retention policy (how long logs are kept, and at what index depth) is usually the single biggest lever on logging cost.
Where logs fit with the other pillars
Metrics surface that something changed, traces show which request and which service, and logs supply the fine-grained detail — the exact error message, stack trace, or payload — needed to actually fix it. When the issue is resource consumption rather than an explicit error, continuous profiling fills in the gap that logs can’t: what the code was actually doing on-CPU at that moment.
Articles in this hub
Why JSON or key-value logs beat free text, and the conventions that keep structured logs cheap to query and safe to ship.
Log Levels: When to Use DEBUG, INFO, WARN, ERRORWhat each standard log level actually means, when to reach for it, and how to control verbosity without losing visibility in production.
Log Retention, Sampling, and Cost ControlWhy log volume scales with traffic and dominates observability spend, and the retention, sampling, and indexing strategies that keep it in check.
Correlation IDs and Request Tracing in LogsHow attaching a trace or request ID to every log line turns a pile of isolated events into a navigable path through a distributed request.
Centralized Logging Architecture PatternsThe standard collect-buffer-process-store-query pipeline shape for centralized logging, and the architectural choices that show up at each stage.
Popular logs tools
Open source
The full-text search and analytics engine at the core of the ELK stack, widely used for log storage and search.
Lightweight, widely used log collectors and forwarders that ship logs from hosts and containers to a central backend.
A log aggregation system from Grafana Labs that indexes only labels, not full log content, to keep storage and query costs low.
A log management platform built on Elasticsearch/OpenSearch with a focus on ease of setup and built-in alerting.
An open-source, OpenTelemetry-native observability platform combining traces, metrics, and logs in one UI.
A high-performance observability data pipeline for collecting, transforming, and routing logs (and metrics) to any backend.
Commercial / managed
A unified commercial observability platform covering infrastructure metrics, APM/distributed tracing, log management, and continuous profiling.
A long-established log management and SIEM platform, now owned by Cisco, built around its own Search Processing Language.
A cloud-native log analytics and SIEM platform aimed at both operational and security use cases.