From cf07245dc8e7b257b7b1b325a43cc0f1b4eadcbe Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 20 May 2025 20:09:09 -0400 Subject: [PATCH] Log Rotates --- vscan_bins.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/vscan_bins.sh b/vscan_bins.sh index 9acce26..ae1ca98 100755 --- a/vscan_bins.sh +++ b/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