full cycle hostname label

This commit is contained in:
Arne Teuke
2025-03-11 15:28:26 +01:00
parent 2f8aea6066
commit 6c0192f50f

View File

@@ -22,8 +22,8 @@ loki.relabel "add_labels" {
rule { rule {
action = "replace" action = "replace"
source_labels = ["__syslog_connection_hostname"]
target_label = "hostname" target_label = "hostname"
replacement = "${constants.hostname}"
} }
rule { rule {
action = "replace" action = "replace"