IPCEICIS-3111 #21
1 changed files with 10 additions and 0 deletions
|
@ -76,3 +76,13 @@ alloy:
|
||||||
targets = discovery.relabel.pod_logs.output
|
targets = discovery.relabel.pod_logs.output
|
||||||
forward_to = [loki.write.local_loki.receiver]
|
forward_to = [loki.write.local_loki.receiver]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local.file_match "openbao_file_logs" {
|
||||||
|
path_targets = [{"__path__" = "/openbao/logs/*"}]
|
||||||
|
sync_period = "5s"
|
||||||
|
}
|
||||||
|
|
||||||
|
loki.source.file "openbao_logs" {
|
||||||
|
targets = local.file_match.openbao_file_logs.output
|
||||||
|
forward_to = [loki.write.local_loki.receiver]
|
||||||
|
}
|
Reference in a new issue