Koozali.org: home of the SME Server

Squid log rotate

Manny

Squid log rotate
« on: December 06, 2002, 06:21:13 AM »
Hi,

How do I manually rotate the squid access.log files?  

I am writing a small Perl application that will parse the access.log and wirte them into a MySql database.  I would like to run this daily as my server does not have enough horsepower to process large files.  

I researched on the Internet for the topic and found two methods suggested:  

/usr/sbin/squid -k rotate

and

kill -USR1 cat /var/run/squid.pid

Neither worked.  I still have the same access.log file that I started with.   Help please....