From bc10123698d18a447bd0e0b65072c3e93d329fc2 Mon Sep 17 00:00:00 2001 From: Fiona Liao Date: Tue, 25 May 2021 12:48:28 +0100 Subject: [PATCH] Remove unnecessary backtick from example (#3757) --- docs/sources/logql/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sources/logql/_index.md b/docs/sources/logql/_index.md index 869df86423b36..f09ab8e7f547b 100644 --- a/docs/sources/logql/_index.md +++ b/docs/sources/logql/_index.md @@ -438,7 +438,7 @@ level=debug ts=2020-10-02T10:10:42.092268913Z caller=logging.go:66 traceID=a9d4d You can use multiple parsers (logfmt and regexp) like this. ```logql -{job="cortex-ops/query-frontend"} | logfmt | line_format "{{.msg}}" | regexp "(?P\\w+) (?P[\\w|/]+) \\((?P\\d+?)\\) (?P.*)"` +{job="cortex-ops/query-frontend"} | logfmt | line_format "{{.msg}}" | regexp "(?P\\w+) (?P[\\w|/]+) \\((?P\\d+?)\\) (?P.*)" ``` This is possible because the `| line_format` reformats the log line to become `POST /api/prom/api/v1/query_range (200) 1.5s` which can then be parsed with the `| regexp ...` parser.