26 lines
480 B
Nix
26 lines
480 B
Nix
|
{
|
||
|
services.telegraf = {
|
||
|
enable = true;
|
||
|
|
||
|
extraConfig = {
|
||
|
inputs = {
|
||
|
syslog = {
|
||
|
server = "udp://:6514";
|
||
|
syslog_standard = "RFC3164";
|
||
|
best_effort = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
outputs = {
|
||
|
loki = {
|
||
|
domain = "http://127.0.0.1:3100";
|
||
|
endpoint = "/loki/api/v1/push";
|
||
|
timeout = "15s";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
networking.firewall.interfaces."vlan777".allowedUDPPorts = [ 6514 ];
|
||
|
}
|