/var/log/squid/access.log {
	daily
	rotate 5
	copytruncate
	nocompress
	notifempty
	missingok
	postrotate
		[ -f "/var/lock/subsys/loganalyzer" ] && \
			/usr/bin/loganalyzer squid /var/log/squid/access.log.1

		bzip2 -9 /var/log/squid/access.log.1
		mv /var/log/squid/access.log.1.bz2 /var/log/squid/access.log.1
	endscript
}
/var/log/squid/cache.log {
	daily
	rotate 5
	copytruncate
	compress
	notifempty
	missingok
}

/var/log/squid/store.log {
	daily
	rotate 5
	copytruncate
	compress
	notifempty
	missingok
# This script asks squid to rotate its logs on its own.
# Restarting squid is a long process and it is not worth
# doing it just to rotate logs
	postrotate
		/usr/sbin/squid -k rotate
	endscript
}
