[squid-users] Squid Log file rotation

santosh santosh.pai at vigyanlabs.com
Fri Nov 14 10:16:06 UTC 2014


Do we have to make any updates in /etc/logrotate.conf or this is sufficient ?
I have now changed the settings as below as I want to keep 6 months logs .

/var/log/squid3/*.log {
        weekly
        compress
        delaycompress
        rotate 24
        missingok
        nocreate
        sharedscripts
        prerotate
                test ! -x /usr/sbin/sarg-reports || /usr/sbin/sarg-reports
        endscript
        postrotate
                test ! -e /var/run/squid3.pid || test ! -x /usr/sbin/squid3
|| /usr/sbin/squid3 -k rotate
        endscript
}



--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Log-file-rotation-tp4668374p4668390.html
Sent from the Squid - Users mailing list archive at Nabble.com.


More information about the squid-users mailing list