pull/2891/head
fang duan 5 years ago committed by GitHub
parent 9d213fb560
commit 64d862fb85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/sources/clients/promtail/pipelines.md
  2. 2
      docs/sources/logql/_index.md

@ -130,7 +130,7 @@ scrape_configs:
component:
# This stage will only run if the scraped target has a label "app"
# with a value of "some-app" and the log line doesn't contains the word "info"
# with a value of "some-app" and the log line doesn't contain the word "info"
- match:
selector: '{app="some-app"} != "info"'
stages:

@ -37,7 +37,7 @@ The following example shows a full log query in action:
The query is composed of:
- a log stream selector `{container="query-frontend",namespace="loki-dev"}` which targets the `query-frontend` container in the `loki-dev`namespace.
- a log pipeline `|= "metrics.go" | logfmt | duration > 10s and throughput_mb < 500` which will filter out log that doesn't contains the word `metrics.go`, then parses each log line to extract more labels and filter with them.
- a log pipeline `|= "metrics.go" | logfmt | duration > 10s and throughput_mb < 500` which will filter out log that contains the word `metrics.go`, then parses each log line to extract more labels and filter with them.
> To avoid escaping special characters you can use the `` ` ``(back-tick) instead of `"` when quoting strings.
For example `` `\w+` `` is the same as `"\\w+"`.

Loading…
Cancel
Save