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 <ow.diehl@gmail.com>

Co-authored-by: Owen Diehl <ow.diehl@gmail.com>
pull/3876/head
Kaviraj 5 years ago committed by GitHub
parent 2c5ce2ce63
commit b77bb567b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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 "<pattern-expression>"`). The expression matches the structure of a log line.
Consider this NGINX log line.

Loading…
Cancel
Save