blob: b77786a9d17c6daf86974d3b0e154ec0b0f1ffcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
local.file_match "eko_logs" {
path_targets = [
{ __path__ = "/home/kyren/projects/eko/logs/*.log" },
]
sync_period = "3s"
}
loki.source.file "eko_tail" {
targets = local.file_match.eko_logs.targets
forward_to = [loki.write.eko.receiver]
tail_from_end = true
}
loki.write "eko" {
endpoint {
url = "http://localhost:3100/loki/api/v1/push"
}
external_labels = { app = "eko-server" }
}
|