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'.