Engineering Swantide
05/11/2026, 5:06 PMAsk Inkeep
05/11/2026, 5:06 PMAsk Inkeep
05/11/2026, 5:06 PMAsk Inkeep
05/11/2026, 5:06 PMEngineering Swantide
05/11/2026, 5:08 PMdavid
05/11/2026, 5:30 PMseverity field to set the log level, but loguru nests it under record.level.name. Since GCP can't find severity at the top level, it falls back to the stderr default → everything shows as ERROR.
What you can do on your end:
The fix is in your log forwarder config, not the PDP. Add a filter that promotes record.level.name to a top-level severity field. Depending on what you're running:
• Fluent Bit sidecar: a modify filter with Rename record.level.name severity, or a small Lua filter if you need to handle the nesting.
• GCP Ops Agent: a modify_fields processor that sets severity from jsonPayload.record.level.name.
Once GCP sees a top-level severity, it should classify each log line correctly (INFO as INFO, ERROR as ERROR, etc.).
https://cloud.google.com/kubernetes-engine/docs/concepts/about-logs
https://cloud.google.com/logging/docs/structured-logging
https://docs.fluentbit.io/manual/data-pipeline/outputs/stackdriver_special_fieldsEngineering Swantide
05/12/2026, 9:07 PM