Skip to content

Commit

Permalink
Fix regex pipeline-example.yml (#1707)
Browse files Browse the repository at this point in the history
Backslashes must not be escaped inside single quotes:
https://github.com/grafana/loki/blob/master/docs/clients/promtail/stages/regex.md#schema

Spent an hour trying to figure out why no `level` tags assigned to my logs. Worked fine after the fix.
  • Loading branch information
dangoodman authored Feb 16, 2020
1 parent db6fd7e commit f71504f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/docker-driver/pipeline-example.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pipeline_stages:
- regex:
expression: '(level|lvl|severity)=(?P<level>\\w+)'
expression: '(level|lvl|severity)=(?P<level>\w+)'
- labels:
level:
level:

0 comments on commit f71504f

Please sign in to comment.