try to fix loki parsing

This commit is contained in:
Seth Call 2025-12-18 20:39:07 -06:00
parent eade1b7847
commit 3acf50b1f2
1 changed files with 3 additions and 0 deletions

View File

@ -47,5 +47,8 @@ spec:
- regex:
# Matches: [14.12.2025 17:53.42.010] [LOG] message...
expression: '^\[.*\] \[(?P<level>\w+)\]\s+(?P<message>.*)$'
- 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