diff --git a/cookbooks/loki/templates/etc/promtail/loki.yaml b/cookbooks/loki/templates/etc/promtail/loki.yaml index a684f40..6b9492b 100644 --- a/cookbooks/loki/templates/etc/promtail/loki.yaml +++ b/cookbooks/loki/templates/etc/promtail/loki.yaml @@ -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[^ ]+) ts=(?P[^ ]+) (?P.+)$' - timestamp: