By NHI Mgmt Group Editorial TeamDomain: Cyber SecuritySource: SawmillsPublished June 9, 2026

TL;DR: Kubernetes log aggregation succeeds or fails on pipeline design, not on the choice of EFK, Loki, or another backend, according to Sawmills. The core issue is that node-level log collection, metadata enrichment, sampling, and filtering become a policy problem once clusters grow and log volume spikes.


At a glance

What this is: This is an analysis of why Kubernetes log aggregation breaks at scale when collection, enrichment, and filtering are left to default pipeline behaviour.

Why it matters: It matters to IAM and platform teams because the same control pattern that governs telemetry policy also shapes access, workload identity, and operational ownership in larger cloud programmes.

👉 Read Sawmills's analysis of Kubernetes log aggregation at scale


Context

Kubernetes log aggregation is a governance problem before it is a tooling problem. Containers create logs on nodes, pods churn, and the evidence needed for incident response disappears unless a pipeline collects it, enriches it, and preserves it on purpose. The primary keyword, Kubernetes log aggregation, is really about deciding what survives operational scale.

The article's core point is that the same pipeline choices that make logs queryable also determine cost, reliability, and control ownership. In identity-heavy cloud environments, that matters because the collectors, gateways, and service accounts used to move telemetry are themselves governed assets, not just plumbing.

Sawmills uses the topic to argue that policy must be enforced in-stream rather than left to dashboard-era clean-up. That starting position is typical for larger platform teams and increasingly unavoidable once clusters grow beyond what ad hoc collector tuning can sustain.


Key questions

Q: How should teams govern Kubernetes log aggregation at scale?

A: Teams should treat log aggregation as a policy problem, not a backend selection exercise. Define what must be retained, sampled, redacted, or dropped before logs leave the node, then enforce those rules centrally. The collector and gateway should reflect platform policy, while application teams remain free to emit logs within those guardrails.

Q: Why does Kubernetes log aggregation become expensive so quickly?

A: Costs rise when enrichment and retention are left unchecked. Every additional attribute creates more downstream cardinality, and every noisy log that reaches a backend consumes storage, indexing, and query resources. At scale, the expensive part is usually not the tool itself but the volume and shape of data the pipeline allows through.

Q: What breaks when log collectors lose track of rotated files?

A: Collectors can duplicate lines, skip events, or miss the exact incident window you need most. In Kubernetes, rotation and pod churn happen constantly, so inode tracking and file handling must be reliable. If they are not, the logs appear to exist operationally but fail as evidence during an outage or security investigation.

Q: Who should own log aggregation policy in Kubernetes?

A: The platform team should own aggregation policy because the rules apply across services, not inside a single application. Developers can emit logs, but platform owners should decide retention, sampling, routing, and redaction standards. That keeps the control consistent as the cluster grows and prevents each service from creating its own logging cost profile.


Technical breakdown

Why Kubernetes log aggregation depends on node-level collection

Kubernetes does not natively preserve application logs as a durable, centralised record. The container runtime writes logs to node files, rotates them, and removes older copies as pods move or restart. A collector therefore has to read local files, track inode changes across rotation, and ship data before the pod disappears. That design makes node-level collection the only practical starting point for scalable aggregation. The moment a cluster grows and pod churn increases, durability depends less on the backend and more on whether the collector can keep pace with file rotation and rescheduling.

Practical implication: validate file rotation handling and node-local collection first, because a weak capture layer defeats every downstream log platform.

How metadata enrichment turns raw logs into usable telemetry

A log line becomes useful only when it is joined to Kubernetes metadata such as namespace, pod, deployment, and node. That enrichment usually happens through API reads, which means the collector needs RBAC to get, list, and watch the relevant objects. Without that permission, logs remain technically present but operationally hard to query, correlate, or route. The same enrichment layer also creates cost pressure, because every extra attribute increases dimensionality in the backend. This is why log aggregation design is partly an access-control problem: the pipeline needs the right service account permissions to make data searchable, but not more than that.

Practical implication: scope collector service accounts tightly and audit which attributes are actually worth indexing before they reach the backend.

Why gateway policy becomes the control point at scale

The architecture that scales separates collection from policy enforcement. A DaemonSet handles local ingestion on each node, then forwards to a gateway where filtering, redaction, sampling, and routing can be applied consistently. That gateway becomes the decision point for what is retained, discarded, or archived, which is why it is operationally critical. If it fails, telemetry loss can follow. If it is overloaded, back-pressure spreads across the pipeline. At small scale this may look like a convenience layer, but at cluster scale it is the mechanism that keeps log volume aligned with governance intent.

Practical implication: treat the gateway as a governed control plane, not an optional middle tier, and size it for sustained throughput.


NHI Mgmt Group analysis

Log aggregation becomes a policy enforcement problem once Kubernetes scale introduces telemetry sprawl. The article is right to de-emphasise the backend choice, because the real failure mode is upstream: teams ingest far more than they can justify, then try to fix it after the cost and noise have compounded. In practice, that makes the pipeline itself the governance boundary for what deserves retention, routing, and redaction. The practitioner takeaway is to enforce telemetry policy where the data enters the platform, not where it is queried later.

Telemetry pipelines now sit in the same control class as other cloud governance workflows. Once collection depends on service accounts, API access, and metadata joins, log aggregation is no longer just an observability exercise. It touches IAM, workload identity, and least-privilege design because the collector must be authorised to inspect cluster state without becoming over-permitted. That intersection matters for identity programmes, which increasingly own the service identities that power platform tooling. The practitioner takeaway is to govern observability collectors as production workloads with defined entitlements.

Policy drift in observability creates a hidden operating-cost debt. The article describes the classic pattern where default instrumentation expands faster than human review, and the result is duplicated lines, high-cardinality labels, and unnecessary retention. That is a named concept worth tracking: telemetry policy drift, meaning the gradual gap between what the platform should collect and what it actually stores. The practitioner takeaway is to make retention, sampling, and attribute rules continuously enforceable rather than periodically re-decided.

Centralising control at the gateway is only effective if ownership is explicit. A gateway can filter, route, and redact, but it cannot create policy on its own. The architectural win comes from assigning a platform team clear authority over collection rules, attribute limits, and backend destinations. Without that ownership, the organisation inherits the costs of distributed logging decisions made by application teams. The practitioner takeaway is to separate application observability freedom from platform-level aggregation governance.

Backend selection should follow governance design, not lead it. The article's comparison of content-indexed and label-indexed backends is useful because it shows that indexing strategy only determines how expensive upstream decisions become. If noisy logs and high-cardinality labels are already entering the pipeline, no backend choice repairs that mistake. The practitioner takeaway is to evaluate storage and query platforms only after log policy, enrichment scope, and sampling rules are defined.

What this signals

Kubernetes observability teams should expect more pressure to prove that telemetry controls are intentional, not accidental. As clusters expand, log volume management starts to resemble identity governance: the question is who can collect, enrich, route, and retain data under which rules, and whether those rules are enforced continuously.

Telemetry policy drift: the gap between logging defaults and platform intent will widen unless platform teams formalise collection rules, attribute limits, and retention tiers. The control model is closer to governed access than to passive monitoring, especially when collectors rely on service accounts and Kubernetes API access.

For practitioners, the practical signal is whether the pipeline can survive load changes without increasing noise, cost, or blind spots. Where the observability stack already depends on identity-scoped access, the NHI Lifecycle Management Guide is the right lens for reviewing how those service identities are provisioned, monitored, and retired.


For practitioners

  • Define collection policy before selecting a backend Decide which log classes deserve hot retention, which should be sampled, and which should be dropped at the node before the pipeline reaches a searchable store. Make those rules explicit for health checks, debug noise, and repeated INFO lines.
  • Scope collector RBAC to metadata only Give the collector just enough access to enrich logs with namespace, pod, deployment, and node data, and verify the service account cannot drift into broader cluster privileges. Use the smallest permission set that still supports correlation.
  • Limit high-cardinality labels at ingestion Block or strip attributes such as pod name and other restart-prone fields unless they are required for incident response. Every unbounded label increases storage cost and can degrade query performance in downstream systems.
  • Treat the gateway as a governed control point Run filtering, sampling, redaction, and routing in a central gateway with explicit ownership, capacity targets, and failure testing. The point is to keep policy consistent as clusters and teams scale.

Key takeaways

  • Kubernetes log aggregation fails when teams treat tooling as the main decision instead of policy, ownership, and pipeline design.
  • The operational risk is not just lost logs but duplicated data, runaway cardinality, and control drift as clusters and service counts grow.
  • Platforms that enforce collection, sampling, and routing at the gateway are better positioned to keep observability governed as scale increases.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 define the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AC-4Collector access to cluster metadata depends on least-privilege permissions.
NIST SP 800-53 Rev 5AC-6The pipeline needs tightly scoped access to Kubernetes objects and logs.
CIS Controls v8CIS-5 , Account ManagementCollector identities are production accounts that need explicit lifecycle governance.
ISO/IEC 27001:2022A.5.15Access control policies should govern which telemetry components can read cluster state.

Document and enforce access rules for telemetry systems as part of information access control.


Key terms

  • Kubernetes Log Aggregation: The process of collecting, enriching, and forwarding container logs from ephemeral Kubernetes workloads into a durable system for search, alerting, and investigation. It must account for pod churn, node-local file rotation, and backend storage limits if it is to remain reliable at scale.
  • Metadata enrichment: The process of attaching useful context to a discovered application, such as its name, category, description, and logo. Enrichment turns a raw domain list into something that can support policy, reporting, and operational decision-making. Without it, inventory quality remains too shallow for governance use.
  • Telemetry Drift: Telemetry drift is the gradual divergence of data formats, ingestion rules, or routing behaviour across sources and tenants. It creates hidden operational risk because the pipeline still runs, but the assumptions behind parsing, enrichment, and compliance are no longer consistent.
  • High-cardinality Data: High-cardinality data contains many unique combinations of tags or labels, which makes querying and storage more expensive. In observability, this can reduce the usefulness of telemetry. For identity teams, it also makes access evidence harder to search and correlate at incident speed.

What's in the full article

Sawmills's full article covers the operational detail this post intentionally leaves for the source:

  • Node-by-node collector patterns for Kubernetes clusters that need to survive pod churn and log rotation
  • OpenTelemetry filelog configuration examples, including the k8sattributes processor and RBAC requirements
  • Gateway-level policy enforcement ideas for drop, sample, redact, and route decisions
  • A comparison of backend trade-offs between label-indexed and content-indexed log platforms

👉 The full Sawmills article covers pipeline architecture, collector deployment patterns, and the policy choices that keep logs useful at scale.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, workload identity, secrets management, and identity lifecycle topics that matter when platform tooling depends on service accounts. It helps security and platform practitioners connect identity controls to the broader operational systems their programmes rely on.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 19, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org