From c531a14704c5dd200ab91a0317fe97f8f050f72f Mon Sep 17 00:00:00 2001 From: Seth Call Date: Tue, 13 Jan 2026 21:04:16 -0600 Subject: [PATCH] try to overwrite logs --- 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 4f571f0..01f9ef2 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 - expression: '^\[.+\]\s+\[(?PDEBUG|INFO|WARN|ERROR|LOG|TRACE)\]\s+(?P.*)$' + # Matches: [TIMESTAMP] [LEVEL] Message, handling potential ANSI codes inside [LEVEL] + expression: '\[.*(?PDEBUG|INFO|WARN|ERROR|LOG|TRACE).*\]\s+(?P.*)$' - template: source: level # If raw_level exists (regex matched), map it. Otherwise, default to 'info'.