Setup ssh/promtail/loki for grafana ssh dashboard

This commit is contained in:
♥ Minnie ♥ 2024-06-13 21:37:38 +08:00
parent 18181f9085
commit 0b4ce24253
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
4 changed files with 122 additions and 0 deletions

View file

@ -6,8 +6,16 @@
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
LogLevel = "VERBOSE";
};
ports = [ 62841 ];
openFirewall = true;
};
services.rsyslogd = {
enable = true;
extraConfig = ''
if $programname == 'sshd' then /var/log/sshd.log
'';
};
}