From 7d8eff1e7b6dfac4e83c9b177784ca6010a58983 Mon Sep 17 00:00:00 2001 From: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Date: Thu, 25 Feb 2021 20:18:19 +0100 Subject: [PATCH] Docs: Derived fields links in logs detail view (#31482) * Add documentatioon for Derived fields links in Explore * Update Toggle detected fields heading * Update docs/sources/explore/logs-integration.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> --- docs/sources/datasources/loki.md | 2 +- docs/sources/explore/logs-integration.md | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/sources/datasources/loki.md b/docs/sources/datasources/loki.md index 50b8117ac73..1cd70e3fa0d 100644 --- a/docs/sources/datasources/loki.md +++ b/docs/sources/datasources/loki.md @@ -39,7 +39,7 @@ The Derived Fields configuration allows you to: - Add fields parsed from the log message. - Add a link that uses the value of the field. -You can use this functionality to link to your tracing backend directly from your logs, or link to a user profile page if a userId is present in the log line. These links appear in the [log details](/explore/#labels-and-detected-fields). +You can use this functionality to link to your tracing backend directly from your logs, or link to a user profile page if a userId is present in the log line. These links appear in the [log details](/explore/logs-integration/#labels-and-detected-fields). {{< docs-imagebox img="/img/docs/v65/loki_derived_fields.png" class="docs-image--no-shadow" caption="Screenshot of the derived fields configuration" >}} Each derived field consists of: diff --git a/docs/sources/explore/logs-integration.md b/docs/sources/explore/logs-integration.md index 33f636100af..f9a13d2e557 100644 --- a/docs/sources/explore/logs-integration.md +++ b/docs/sources/explore/logs-integration.md @@ -82,7 +82,12 @@ You can change the order of received logs from the default descending order (new Each log row has an extendable area with its labels and detected fields, for more robust interaction. For all labels we have added the ability to filter for (positive filter) and filter out (negative filter) selected labels. Each field or label also has a stats icon to display ad-hoc statistics in relation to all displayed logs. -### Toggle detected fields +#### Derived fields links + +By using Derived fields, you can turn any part of a log message into an internal or external link. The created link is visible as a button next to the Detected field in the Log details view. +{{< docs-imagebox img="/img/docs/explore/detected-fields-link-7-4.png" max-width="800px" caption="Detected fields link in Explore" >}} + +#### Toggle detected fields > **Note:** Available in Grafana 7.2 and later versions.