From c3a3bc396fab6e8fb7ea4ac3ad1682fbb4754aeb Mon Sep 17 00:00:00 2001 From: Sandeep Sukhani Date: Tue, 30 Apr 2024 00:27:28 +0530 Subject: [PATCH] docs: hint on line and timestamp functions in docs for line_format stage (#12740) Co-authored-by: J Stickler --- docs/sources/query/log_queries/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sources/query/log_queries/_index.md b/docs/sources/query/log_queries/_index.md index 1f8968ecbc..8f0e436713 100644 --- a/docs/sources/query/log_queries/_index.md +++ b/docs/sources/query/log_queries/_index.md @@ -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//query/template_functions/#__line__) function and the timestamp using the [`__timestamp__`](https://grafana.com/docs/loki//query/template_functions/#__timestamp__) function. See [template functions](https://grafana.com/docs/loki//query/template_functions/) to learn about available functions in the template format. ### Labels format expression