|
|
|
|
@ -43,6 +43,29 @@ cat << EOF | sudo tee /etc/logrotate.d/exescans |
|
|
|
|
su root root |
|
|
|
|
} |
|
|
|
|
EOF |
|
|
|
|
cat << EOF | sudo tee /etc/logrotate.d/exeguard |
|
|
|
|
/var/log/exeguard.log { |
|
|
|
|
weekly |
|
|
|
|
missingok |
|
|
|
|
rotate 4 |
|
|
|
|
compress |
|
|
|
|
delaycompress |
|
|
|
|
notifempty |
|
|
|
|
create 640 root root |
|
|
|
|
su root root |
|
|
|
|
} |
|
|
|
|
EOF |
|
|
|
|
cat << EOF | sudo tee /etc/logrotate.d/clamresults |
|
|
|
|
/var/log/clamav/results.log { |
|
|
|
|
weekly |
|
|
|
|
missingok |
|
|
|
|
rotate 4 |
|
|
|
|
compress |
|
|
|
|
delaycompress |
|
|
|
|
notifempty |
|
|
|
|
create 640 clamav adm |
|
|
|
|
} |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
echo "Restarting rsyslog..." |
|
|
|
|
sudo systemctl restart rsyslog |
|
|
|
|
|