From 8ae17421dea7a29ee26cd89961edfb89a6e4fc1c Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Mon, 10 Mar 2025 22:43:44 +0100 Subject: [PATCH] add file control for main log files --- templates/config.alloy.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/config.alloy.erb b/templates/config.alloy.erb index d510ef1..18b5ea2 100644 --- a/templates/config.alloy.erb +++ b/templates/config.alloy.erb @@ -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"