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
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,10 +25,10 @@ loki.enrich "<LABEL>" {
25
25
targets = <DISCOVERY_COMPONENT>.targets
26
26
27
27
// Which label from discovered targets to match against
28
-
match_label = "<LABEL>"
28
+
target_match_label = "<LABEL>"
29
29
30
30
// Which label from incoming logs to match against
31
-
source_label = "<LABEL>"
31
+
logs_match_label = "<LABEL>"
32
32
33
33
// List of labels to copy from discovered targets to logs
34
34
labels_to_copy = ["<LABEL>", ...]
@@ -48,7 +48,9 @@ You can use the following arguments with `loki.enrich`:
48
48
|`target_match_label`|`string`| The label from discovered targets to match against, for example, `"__inventory_consul_service"`. || yes |
49
49
|`targets`|`[]discovery.Target`| List of targets from a discovery component. || yes |
50
50
|`labels_to_copy`|`[]string`| List of labels to copy from discovered targets to logs. If empty, all labels will be copied. || no |
51
-
|`logs_match_label`|`string`| The label from incoming logs to match against discovered targets, for example `"service_name"`. |`"target_match_label"`| no |
51
+
|`logs_match_label`|`string`| The label from incoming logs to match against discovered targets, for example `"service_name"`. || no |
52
+
53
+
If not provided, the `logs_match_label` attribute will default to the value of `target_match_label`.
0 commit comments