From d3266a185c1bf2f7b5aceb9ef8d123f5c15eb5e7 Mon Sep 17 00:00:00 2001 From: Pangidoan Butar <38452094+doanbutar@users.noreply.github.com> Date: Wed, 27 Mar 2024 01:53:05 +0800 Subject: [PATCH] docs: Update structured_metadata.md (#12355) Co-authored-by: J Stickler --- docs/sources/send-data/promtail/stages/structured_metadata.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/sources/send-data/promtail/stages/structured_metadata.md b/docs/sources/send-data/promtail/stages/structured_metadata.md index 70e671bb8ae17..7337bef023b9a 100644 --- a/docs/sources/send-data/promtail/stages/structured_metadata.md +++ b/docs/sources/send-data/promtail/stages/structured_metadata.md @@ -14,6 +14,8 @@ modifies the [structured metadata]({{< relref "../../../get-started/labels/struc {{% admonition type="warning" %}} Structured metadata will be rejected by Loki unless you enable the `allow_structured_metadata` per tenant configuration (in the `limits_config`). + +Structured metadata was added to chunk format V4 which is used if the schema version is greater or equal to **13**. (See Schema Config for more details about schema versions. ) {{% /admonition %}} ## Schema @@ -47,7 +49,7 @@ For the given pipeline: Given the following log line: ```json -{"log":"log message\n","stream":"stderr","traceID":"0242ac120002",time":"2019-04-30T02:12:41.8443515Z"} +{"log":"log message\n","stream":"stderr","traceID":"0242ac120002","time":"2019-04-30T02:12:41.8443515Z"} ``` The first stage would extract `stream` with a value of `stderr` and `traceID` with a value of `0242ac120002` into