log level fighting
This commit is contained in:
parent
b0a4fe331b
commit
1128386b7a
|
|
@ -46,7 +46,8 @@ spec:
|
||||||
- cri: {}
|
- cri: {}
|
||||||
- regex:
|
- regex:
|
||||||
# Capture into a temporary variable 'raw_level' to avoid overwriting existing logic
|
# Capture into a temporary variable 'raw_level' to avoid overwriting existing logic
|
||||||
expression: '\[(?P<raw_level>DEBUG|INFO|WARN|ERROR|LOG|TRACE)\]\s+(?P<message>.*)$'
|
# Matches: [TIMESTAMP] [LEVEL] Message
|
||||||
|
expression: '^\[.+\]\s+\[(?P<raw_level>DEBUG|INFO|WARN|ERROR|LOG|TRACE)\]\s+(?P<message>.*)$'
|
||||||
- template:
|
- template:
|
||||||
source: level
|
source: level
|
||||||
# If raw_level exists (regex matched), map it. Otherwise, default to 'info'.
|
# If raw_level exists (regex matched), map it. Otherwise, default to 'info'.
|
||||||
|
|
|
||||||
|
|
@ -82,3 +82,6 @@ loki:
|
||||||
|
|
||||||
gateway:
|
gateway:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
lokiCanary:
|
||||||
|
enabled: false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue