Hi,
I run proxy in my office using debian lenny. My problem now is access.log is big as 200M. So i want to slice that access.log into 10M and it rotate weekly.
Code:
/var/log/squid/*.log {
weekly
size 10M
compress
rotate 4
missingok
copytruncate
nocreate
sharedscripts
postrotate
test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
endscript
}
Seem when it's exceed to 10M it will not create new access.log. Please assist me.
Thanks.