Update syslog to log sshd stuff seperately.

This commit is contained in:
Darren 'Tadgy' Austin 2023-11-05 14:28:07 +00:00
commit 66eb2a2982
2 changed files with 9 additions and 4 deletions

View file

@ -4,8 +4,13 @@
# * Set the correct ownership+permissions on the file
# * Update /etc/logrotate.d/syslog with the changes
auth.* /var/log/messages
authpriv.* /var/log/messages
!sshd
auth.* /var/log/sshd
authpriv.* /var/log/sshd
!*
auth.alert /var/log/messages
authpriv.warn /var/log/messages
cron.* /var/log/messages
daemon.* /var/log/messages
ftp.* /var/log/messages
@ -18,7 +23,7 @@ user.* /var/log/messages
uucp.* /var/log/messages
# fail2ban (custom configuration) uses local0.
local0.* /var/log/messages
local0.* /var/log/fail2ban
# named (custom configuration) uses local1.
local1.* /var/log/messages
# spamd is started with '-s local2'.