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] }
This commit is contained in:
parent
a5ec02205a
commit
3e1b284e3b
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]
|
||||||
|
}
|
Loading…
Reference in a new issue