diff --git a/k8s/loki/templates/podlogs.yaml b/k8s/loki/templates/podlogs.yaml index 9dbce01..ec9398a 100644 --- a/k8s/loki/templates/podlogs.yaml +++ b/k8s/loki/templates/podlogs.yaml @@ -49,6 +49,6 @@ spec: 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 }}' + 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