add file control for main log files

This commit is contained in:
Arne Teuke
2025-03-10 22:43:44 +01:00
parent 4bb73da9a4
commit 8ae17421de

View File

@@ -18,7 +18,7 @@ loki.source.file "system_logs" {
// Add hostname and job labels
loki.relabel "add_labels" {
forward_to = [loki.write.loki_endpoint.receiver]
forward_to = [loki.write.loki.receiver]
rule {
source_labels = ["__host__"] // Internal hostname from constants.hostname
target_label = "hostname"