full cycle hostname label
This commit is contained in:
@@ -21,9 +21,9 @@ loki.relabel "add_labels" {
|
|||||||
forward_to = [loki.write.loki.receiver]
|
forward_to = [loki.write.loki.receiver]
|
||||||
|
|
||||||
rule {
|
rule {
|
||||||
action = "replace"
|
action = "replace"
|
||||||
target_label = "hostname"
|
source_labels = ["__syslog_connection_hostname"]
|
||||||
replacement = "${constants.hostname}"
|
target_label = "hostname"
|
||||||
}
|
}
|
||||||
rule {
|
rule {
|
||||||
action = "replace"
|
action = "replace"
|
||||||
|
|||||||
Reference in New Issue
Block a user