Log Rotates

main
Robert 7 months ago
parent 3f9b4ffda9
commit cf07245dc8
  1. 23
      vscan_bins.sh

@ -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

Loading…
Cancel
Save