add file control for main log files
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user