Skip to content

Commit

Permalink
Add explict syntax for using pattern parser (#3871)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
kavirajk and owen-d authored Jun 22, 2021
1 parent 2c5ce2c commit b77bb56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sources/logql/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit b77bb56

Please sign in to comment.