Skip to content

Commit fc99aa2

Browse files
Update pipeline/outputs/loki.md
Co-authored-by: Craig Norris <[email protected]> Signed-off-by: Greg Eales <[email protected]>
1 parent 96d41fd commit fc99aa2

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

pipeline/outputs/loki.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,18 @@ Other common uses for structured metadata include trace and span IDs, process an
260260
Structured metadata is officially supported starting with Loki 3.0, and shouldn't be used
261261
with Loki deployments prior to Loki 3.0.
262262

263-
#### Structured Metadata Maps
264-
In addition to the `structured_metadata` configuration parameter, a `structured_metadata_map_keys` is available, which can be used to dynamically populate structured metadata from map values in the log record. `structured_metadata_map_keys` can be set with a list of record accessors, where each one should reference map values in the log record. Record accessors which do not match a map value will simply be skipped.
265-
266-
The following configuration is similar to the above, except now all entries in the log record map value `$kubernetes` will be used as structured metadata entries.
263+
#### Structured metadata maps
264+
265+
In addition to the `structured_metadata` configuration parameter, a
266+
`structured_metadata_map_keys` is available for your use, which dynamically populates
267+
structured metadata from map values in the log record. The
268+
`structured_metadata_map_keys` parameter can be set with a list of record accessors,
269+
each one referencing map values in the log record. Record accessors that don't match
270+
a map value are skipped.
271+
272+
The following configuration is similar to the previous configuration, except all
273+
entries in the log record map value `$kubernetes` are used as structured metadata
274+
entries:
267275

268276
```python
269277
[OUTPUT]

0 commit comments

Comments
 (0)