From e05aa0be465d369255a1e38941aed911fdd922fe Mon Sep 17 00:00:00 2001 From: "loki-gh-app[bot]" <160051081+loki-gh-app[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:24:20 -0400 Subject: [PATCH] docs: Fixing two broken links (backport release-3.2.x) (#14672) Co-authored-by: J Stickler --- docs/sources/query/bp-query.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/sources/query/bp-query.md b/docs/sources/query/bp-query.md index 692cb14ee2948..bcf73c5b31f32 100644 --- a/docs/sources/query/bp-query.md +++ b/docs/sources/query/bp-query.md @@ -31,7 +31,8 @@ If you're using Loki with Grafana, you can use the dropdown menu on the upper ri ### Through Loki API -If you're querying Loki through [the Loki API](https://grafana.com/docs/loki//reference/loki-http-api/), you can use the [`query_range` endpoint]({{https://grafana.com/docs/loki//reference/loki-http-api/#query-logs-within-a-range-of-time" >}}) to add `start` and `end` timestamps for your query as parameters to the HTTP call rather than as part of the query itself. +If you're querying Loki through [the Loki API](https://grafana.com/docs/loki//reference/loki-http-api/), you can use the [`query_range` endpoint](https://grafana.com/docs/loki//reference/loki-http-api/#query-logs-within-a-range-of-time) + to add `start` and `end` timestamps for your query as parameters to the HTTP call rather than as part of the query itself. ```bash http:///loki/api/v1/query_range?query={job="app"}&start=1633017600000000000&end=1633104000000000000 @@ -67,7 +68,7 @@ Line filter expressions are more efficient than parser expressions. Use [parser expressions](https://grafana.com/docs/loki//query/log_queries/#parser-expression) only after line filter expressions. Parser expressions are ways to look through the log line and extract labels in different formats, which can be useful but are also more intensive for Loki to do than line filter expressions. Using them after line filter expressions means that Loki only needs to evaluate parser expressions for log lines that match the line filter expression, reducing the amount of logs that Loki needs to search through. -Parser expressions include [JSON](https://grafana.com/docs/loki//query/log_queries/#json, [logfmt](https://grafana.com/docs/loki//query/log_queries/#logfmt), [pattern](https://grafana.com/docs/loki//query/log_queries/#pattern), [regexp](https://grafana.com/docs/loki//query/log_queries/#regular-expression), and [unpack](https://grafana.com/docs/loki//query/log_queries/#unpack) parsers. +Parser expressions include [JSON](https://grafana.com/docs/loki//query/log_queries/#json), [logfmt](https://grafana.com/docs/loki//query/log_queries/#logfmt), [pattern](https://grafana.com/docs/loki//query/log_queries/#pattern), [regexp](https://grafana.com/docs/loki//query/log_queries/#regular-expression), and [unpack](https://grafana.com/docs/loki//query/log_queries/#unpack) parsers. ## Use recording rules