Files
confdroid_alloy/templates/config.alloy.erb

23 lines
413 B
Plaintext
Raw Normal View History

2025-02-24 13:24:45 +01:00
logging {
level = "info"
format = "logfmt"
}
loki.source.file "system_logs" {
targets = [
<% @log_targets_array.each do |target| -%>
{__path__ = "<%= target %>"},
<% end -%>
]
forward_to = [loki.write.loki.receiver]
}
loki.write "loki" {
endpoint {
2025-02-24 13:39:18 +01:00
url = "<%= @ay_loki_url"
2025-02-24 13:24:45 +01:00
basic_auth {
username = "<%= @ay_loki_username %>"
password = "<%= @ay_loki_userpass %>"
}
}
}