From 3acf50b1f2ea9ba6ba1cf9b204817eee46464406 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Thu, 18 Dec 2025 20:39:07 -0600 Subject: [PATCH] try to fix loki parsing --- k8s/loki/templates/podlogs.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/k8s/loki/templates/podlogs.yaml b/k8s/loki/templates/podlogs.yaml index c8bc200..9dbce01 100644 --- a/k8s/loki/templates/podlogs.yaml +++ b/k8s/loki/templates/podlogs.yaml @@ -47,5 +47,8 @@ spec: - regex: # Matches: [14.12.2025 17:53.42.010] [LOG] message... expression: '^\[.*\] \[(?P\w+)\]\s+(?P.*)$' + - template: + source: level + template: '{{ if eq .Value "LOG" }}info{{ else if eq .Value "WARN" }}warn{{ else if eq .Value "ERROR" }}error{{ else }}{{ .Value | lower }}{{ end }}' - labels: level: level