You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/sources/reference/components/loki/loki.enrich.md
+4-11
Original file line number
Diff line number
Diff line change
@@ -125,17 +125,10 @@ loki.enrich "default" {
125
125
126
126
The component matches logs to discovered targets and enriches them with additional labels:
127
127
128
-
1. For each log entry, it looks up the value of `logs_match_label` from the log's labels (or `target_match_label` if `logs_match_label` is not specified)
129
-
2. It matches this value against the `target_match_label` in discovered targets
130
-
3. If a match is found, it copies the requested `labels_to_copy` from the discovered target to the log entry (if `labels_to_copy` is empty, all labels are copied)
131
-
4. The log entry (enriched or unchanged) is forwarded to the configured receivers
1. For each log entry, it looks up the value of `logs_match_label` from the log's labels or `target_match_label` if `logs_match_label` is not specified.
129
+
1. It matches this value against the `target_match_label` in discovered targets.
130
+
1. If a match is found, it copies the requested `labels_to_copy` from the discovered target to the log entry. If `labels_to_copy` is empty, all labels are copied.
131
+
1. The log entry, enriched or unchanged, is forwarded to the configured receivers.
0 commit comments