Skip to content

Commit 7f0858a

Browse files
committed
out_loki: make it clear setting labels removes the keys from record
Related to the pull request fluent/fluent-bit#9766 The documentation doesn't make it clear, but the code seems to be trying to work this way. Also minor typo fix.
1 parent c74f21f commit 7f0858a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pipeline/outputs/loki.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Be aware there is a separate Golang output plugin provided by [Grafana](https://
3535

3636
## Labels
3737

38-
Loki store the record logs inside Streams, a stream is defined by a set of labels, at least one label is required.
38+
Loki stores the record logs inside Streams, a stream is defined by a set of labels, at least one label is required.
3939

4040
Fluent Bit implements a flexible mechanism to set labels by using fixed key/value pairs of text but also allowing to set as labels certain keys that exists as part of the records that are being processed.
4141
Consider the following JSON record \(pretty printed for readability\):
@@ -88,6 +88,8 @@ When processing that new configuration, the internal labels will be:
8888
job="fluentbit", mystream="stdout"
8989
```
9090

91+
Extracting keys to labels through `labels`, `label_keys` or `label_map_path` will remove those keys from the record.
92+
9193
### Using the `label_keys` property
9294

9395
The additional configuration property called `label_keys` allow to specify multiple record keys that needs to be placed as part of the outgoing Stream Labels, yes, this is a similar feature than the one explained above in the `labels` property.

0 commit comments

Comments
 (0)