Setup ssh/promtail/loki for grafana ssh dashboard
This commit is contained in:
parent
18181f9085
commit
0b4ce24253
4 changed files with 122 additions and 0 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue