From cf82fafb534ac6dfefc4417df52dfe66ad9dd88f Mon Sep 17 00:00:00 2001 From: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Date: Fri, 28 Apr 2023 12:25:51 +0200 Subject: [PATCH] Loki: Update docs for show context (#67202) * Loki: Update docs for show context * Update docs/sources/datasources/loki/query-editor/index.md Co-authored-by: Matias Chomicki * Update docs/sources/datasources/loki/query-editor/index.md Co-authored-by: J Stickler --------- Co-authored-by: Matias Chomicki Co-authored-by: J Stickler --- docs/sources/datasources/loki/query-editor/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sources/datasources/loki/query-editor/index.md b/docs/sources/datasources/loki/query-editor/index.md index 58a573d29b5..e39a848685e 100644 --- a/docs/sources/datasources/loki/query-editor/index.md +++ b/docs/sources/datasources/loki/query-editor/index.md @@ -101,9 +101,9 @@ For more information about log queries and LogQL, refer to the [Loki log queries ### Show log context -When using a search expression as detailed above, you can retrieve the context surrounding your filtered results. -By clicking the `Show Context` link on the filtered rows, you'll be able to investigate the log messages that came before and after the -log message you're interested in. +In Explore, you can can retrieve the context surrounding your log results by clicking the `Show Context` button. You'll be able to investigate the logs from the same log stream that came before and after the log message you're interested in. + +The initial log context query is created from all labels defining the stream for the selected log line. You can use the log context query editor to widen the search by removing one or more of the label filters from log stream. Additionally, if you used a parser in your original query, you can refine your search by using extracted labels filters. ### Tail live logs