From 0d86eca77fdcddc176e1725c7a0ad5ea2c61acb4 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Fri, 16 Jan 2026 08:57:21 -0600 Subject: [PATCH] fightitng log levels still --- k8s/loki/templates/podlogs.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/loki/templates/podlogs.yaml b/k8s/loki/templates/podlogs.yaml index 01f9ef2..68f1d15 100644 --- a/k8s/loki/templates/podlogs.yaml +++ b/k8s/loki/templates/podlogs.yaml @@ -46,8 +46,8 @@ spec: - cri: {} - regex: # Capture into a temporary variable 'raw_level' to avoid overwriting existing logic - # Matches: [TIMESTAMP] [LEVEL] Message, handling potential ANSI codes inside [LEVEL] - expression: '\[.*(?PDEBUG|INFO|WARN|ERROR|LOG|TRACE).*\]\s+(?P.*)$' + # Matches: [LEVEL] anywhere in the line + expression: '\[(?PDEBUG|INFO|WARN|ERROR|LOG|TRACE)\]' - template: source: level # If raw_level exists (regex matched), map it. Otherwise, default to 'info'.