squid log file rotation
squid logfile rotation is handled by logrotate. We have to disable built-in squid log rotation.
#1 Updated by Filippo Carletti about 4 years ago
- Status changed from NEW to TRIAGED
- Assignee set to Filippo Carletti
- % Done changed from 0 to 20
/var/log/squid contains double logs:
-rw-r-----. 1 squid squid 0 Oct 22 19:12 cache.log.0 -rw-r-----. 1 squid squid 777 Oct 22 19:12 cache.log-20151021.gz
The ".?" are always zero in size.
#4 Updated by Filippo Carletti about 4 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
Package in nethserver-testing:
# squid -k parse 2>&1 | grep logfile 2015/10/22 21:28:30| Processing: logfile_rotate 0
And, after the weekend, when logs are rotated, there'd be only the .gz logfiles.
#6 Updated by Adam P about 4 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
- % Done changed from 70 to 90
ESXi 5.1 VM - Clean install of Nethserver 6.7 fully updated - 2 eth
Packages installed: Basic firewall, DNS and DHCP server, Intrusion Prevention System, Web filter, Web proxy, Web server
yum --enablerepo=nethserver-testing update nethserver-squid
Test case 1
Ran the following command:
logrotate -f /etc/logrotate.conf
Logs rotated as expected.