logs are usually taken care of by logrotate
contents of /etc/logrotate.d/squid/:
Code:
/var/log/squid/access.log {
weekly
rotate 4
copytruncate
notifempty
missingok
nocompress
}
/var/log/squid/cache.log {
weekly
rotate 4
copytruncate
compress
notifempty
missingok
postrotate
/usr/local/squid/bin/squid -k rotate
endscript
}
That will rotate the log weekly and keep 4 weeks worth of back logs. For a network with several people on it you might want to rotate it daily.