diff --git a/docs/sources/features/datasources/loki.md b/docs/sources/features/datasources/loki.md index bdfe48f744b..3a78079b5c8 100755 --- a/docs/sources/features/datasources/loki.md +++ b/docs/sources/features/datasources/loki.md @@ -39,12 +39,14 @@ Just add it as a data source and you are ready to query your log data in [Explor ### Derived fields 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 will be shown in the [log details](/features/explore/#labels-and-parsed-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: + - **Name:** Shown in the log details as a label. - **Regex:** A Regex pattern that runs on the log message and captures part of it to as the value of the new field. Can only contain capture a single group. - **URL**: A URL template used to construct a link next to the field value in log details. Use special `${__value.raw}` value in your template to interpolate the real field value into your URL template.