Skip to content

Commit 23fc986

Browse files
committed
refactor: 필터를 위한 regex(표현식) 롤백
1 parent 4b43e6f commit 23fc986

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

monitoring/promtail/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ scrape_configs:
3636
selector: '{container_name=~"lastdance-(blue|green)-app"}'
3737
stages:
3838
- regex:
39-
expression: '^(?P<timestamp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z)\s+(?P<level>\S+)\s+\d+\s+---\s+\[.*?\]\s+\[.*?\]\s+(?P<logger>[\w.$]+)\s+:\s+(?P<message>.*)$'
39+
expression: '^(?P<timestamp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z)\s+(?P<level>\S+)\s+(?P<pid>\d+)\s+---\s+\[(?P<logger>[a-zA-Z0-9.$]+)\]\s+:\s+(?P<message>.*)$'
4040
- timestamp:
4141
source: timestamp
4242
format: RFC3339Nano

0 commit comments

Comments
 (0)