Red Hat moves log normalization to the OpenShift workload boundary
A new operator injects a sidecar that turns mixed application output into structured records for OpenTelemetry and trace-to-log investigation without changing application code.
Red Hat has published a deployment pattern for normalizing application logs at the OpenShift workload boundary, rather than maintaining a separate parser for every service in the collector. The engineering walkthrough uses the Open Data Hub log normalizer operator to inject a wrapper and native sidecar into selected pods, preserve the original container output and emit a second, structured record.
The practical target is trace-to-log investigation. Mixed Kubernetes workloads commonly emit JSON, logfmt, klog, Zap console output, plain text and multiline stack traces. The operator detects those formats, maps common timestamp, severity and message fields, and promotes recognized trace and span identifiers into stable top-level fields. It also attaches pod, namespace, node and pod-UID context before optionally exporting the normalized record over OTLP gRPC.
What the operator changes
A cluster administrator creates a LogNormalizerConfig and labels namespaces selected for injection. At pod admission, the webhook adds a shared volume, an init container containing the wrapper, and a native sidecar running the normalizer. The wrapper tees stdout and stderr: the application’s original output remains available, while a copy is sent through the sidecar.
The approach does not require application code changes, which makes it useful for third-party images and estates spanning several languages and logging libraries. It can also reassemble Go, Java and Python stack traces before parsing them. A Drain-style template miner assigns recurring message patterns a template ID, giving downstream systems another way to group repeated errors or identify unusual ones.
Red Hat positions this as preparation for correlation tools such as Korrel8r, not as a Korrel8r installer. The operator supplies consistent trace and Kubernetes identity; an OpenTelemetry collector and the configured log and trace back ends still handle routing, retention and queries.
Where teams should be careful
The published deployment requires OpenShift 4.18 or Kubernetes 1.33 because it relies on native sidecars. Existing pods are not modified retroactively, so workloads need to be restarted after namespace injection is enabled.
The webhook uses failurePolicy: Ignore. That protects workload availability during an operator outage, but it also means a pod can start without normalization. Containers without an explicit command introduce another edge case: the webhook tries to resolve the image entry point and command from the registry, and leaves a container unwrapped if that lookup fails.
The article reports roughly 1 millicore of CPU and 18 MiB of memory for an individual sidecar in its demo measurement, but explicitly treats those figures as workload-specific observations rather than sizing guarantees. Platform teams should therefore test representative log volume, set resource requests and limits in the custom resource, and monitor the cost of both normalization and OTLP export.
This is a technical pattern rather than a finished managed logging feature. Its value is the architectural trade: one admission-time logging contract can replace a growing collection of collector-side parsing rules, while still leaving the application’s original output intact.
sources
comments · 0