Modify `promtail` config for `loki`.
This commit is contained in:
parent
905305b57e
commit
22bd0f555e
|
@ -21,8 +21,10 @@ scrape_configs:
|
||||||
- match:
|
- match:
|
||||||
selector: '{job="loki"}'
|
selector: '{job="loki"}'
|
||||||
stages:
|
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>.+)$'
|
expression: '^[^ ]+ +[0-9]+ [0-9]+:[0-9]+:[0-9]+ [^ ]+ loki[^ ]+ .*level=(?P<level>[^ ]+) ts=(?P<timestamp>[^ ]+) (?P<message>.+)$'
|
||||||
|
|
||||||
- timestamp:
|
- timestamp:
|
||||||
|
|
Loading…
Reference in New Issue