Modify `promtail` config for `loki`.
This commit is contained in:
parent
905305b57e
commit
22bd0f555e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue