From b77bb567b2eca0a6ccc8a3f4f50f1c611f367248 Mon Sep 17 00:00:00 2001 From: Kaviraj Date: Tue, 22 Jun 2021 10:45:27 +0200 Subject: [PATCH] Add explict syntax for using `pattern` parser (#3871) * Add explict syntax for using `pattern` parser Motivation is from community discussion https://community.grafana.com/t/how-to-use-loki-pattern-parser/49195 * Update docs/sources/logql/_index.md Co-authored-by: Owen Diehl Co-authored-by: Owen Diehl --- 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 ea9f724a49..1728dcb64b 100644 --- a/docs/sources/logql/_index.md +++ b/docs/sources/logql/_index.md @@ -280,7 +280,7 @@ will get those labels extracted: ##### Pattern -The pattern parser allows the explicit extraction of fields from log lines by defining a pattern expression. The expression matches the structure of a log line. +The pattern parser allows the explicit extraction of fields from log lines by defining a pattern expression (`| pattern ""`). The expression matches the structure of a log line. Consider this NGINX log line.