docs: Fix broken link from unpack parser to pack stage (#6207)

and make hyperlinks more obvious

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
pull/6212/head
Christian Haudum 3 years ago committed by GitHub
parent a58dc3f6a8
commit d5c337c4d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/sources/clients/promtail/stages/pack.md
  2. 2
      docs/sources/logql/log_queries.md

@ -57,7 +57,7 @@ This would create a log line
}
```
**Loki 2.2 also includes a new [`unpack`](../../../../logql/log_queries/#unpack) parser to work with the pack stage.**
**Loki 2.2 also includes a new [`unpack` parser]({{< relref "../../../logql/log_queries.md#unpack" >}}) to work with the pack stage.**
For example:

@ -476,7 +476,7 @@ those labels:
#### unpack
The `unpack` parser parses a JSON log line, unpacking all embedded labels in the [`pack`](../clients/promtail/stages/pack/) stage.
The `unpack` parser parses a JSON log line, unpacking all embedded labels from Promtail's [`pack` stage]({{< relref "../clients/promtail/stages/pack.md" >}}).
**A special property `_entry` will also be used to replace the original log line**.
For example, using `| unpack` with the log line:

Loading…
Cancel
Save