try to fix loki parsing
This commit is contained in:
parent
eade1b7847
commit
3acf50b1f2
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue