Modify `promtail` config for `loki`.

This commit is contained in:
Kazuhiro MUSASHI 2020-10-31 17:00:30 +09:00
parent 905305b57e
commit 22bd0f555e
1 changed files with 3 additions and 1 deletions

View File

@ -21,8 +21,10 @@ scrape_configs:
- match:
selector: '{job="loki"}'
stages:
- regex:
- drop:
expression: 'entry out of order'
- regex:
expression: '^[^ ]+ +[0-9]+ [0-9]+:[0-9]+:[0-9]+ [^ ]+ loki[^ ]+ .*level=(?P<level>[^ ]+) ts=(?P<timestamp>[^ ]+) (?P<message>.+)$'
- timestamp: