Skip to content

Commit

Permalink
chore: [release-3.0.x] docs: hint on line and timestamp functions in …
Browse files Browse the repository at this point in the history
…docs for line_format stage (#12821)

Co-authored-by: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
  • Loading branch information
grafanabot and sandeepsukhani committed Apr 29, 2024
1 parent dca800a commit ffdf140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sources/query/log_queries/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ If we have the following labels `ip=1.1.1.1`, `status=200` and `duration=3000`(m

The above query will give us the `line` as `1.1.1.1 200 3`

See [template functions]({{< relref "../template_functions" >}}) to learn about available functions in the template format.
Additionally, you can also access the log line using the [`__line__`](https://grafana.com/docs/loki/<LOKI_VERSION>/query/template_functions/#__line__) function and the timestamp using the [`__timestamp__`](https://grafana.com/docs/loki/<LOKI_VERSION>/query/template_functions/#__timestamp__) function. See [template functions](https://grafana.com/docs/loki/<LOKI_VERSION>/query/template_functions/) to learn about available functions in the template format.

### Labels format expression

Expand Down

0 comments on commit ffdf140

Please sign in to comment.