Hi Mogwai,
Wet Mogwai wrote:
> My squid machine stopped rotating logs recently. The last time rotate worked
> was the day before I copied the access.log to my laptop for the first time.
> The only changes made to the configuration that day were the good.hosts ,
> bad.hosts, good.ip, and bad.ip files. After making the new files for the
> ACLs, I ran squid -k reload.
>
> I tried setting the logfile_rotate option in squid.conf in case it was
> ignoring the default. I have checked ownership and permissions. Everything
> seems right. It is still writing to the log, so it is getting to be quite
> large. I could write my own rotate script, but I'd rather get the existing
> function working.
>
> This has been working properly for at least a year and a half. What could
> have caused squid to quit rotating?
>
> I am running Squid Cache: Version 2.5.STABLE14 on FreeBSD 6.1-RELEASE-p8
> (SQUID_KERNEL). Logrotate is in the ports tree, but it is not installed.
Are you sure that the absolute location of your squid's binary is
correct while you issue the command "squid -k rotate"?
Since you are using FreeBSD-6.1, you have at least 2 options to manage
your squid logs.
The simple way is by using /etc/newsyslog.conf file.
Putting the following entry in newsyslog.conf will rotate your logs at
10 PM.
/var/log/squid/access.log squid:squid 644 7 * @T22 J
/usr/local/squid/logs/squid.pid 30
You can also use the logrotate program to do the job but is a little
difficult to setup but worth it.
Please see the following thread for more details:
http://www.mail-archive.com/squid-users@squid-cache.org/msg48054.html
Like another user had said, you should really upgrade to the latest
stable version of Squid which is 2.6.STABLE14 currently. It has lots of
extra features and is extremely CPU friendly. You will really appreciate it.
You can find it latest source from the URL below:
http://www.squid-cache.org/Versions/v2/2.6/squid-2.6.STABLE14.tar.gz
Hope it helps.
Thanking you....
-- With best regards and good wishes, Yours sincerely, Tek Bahadur Limbu System Administrator (TAG/TDG Group) Jwl Systems Department Worldlink Communications Pvt. Ltd. Jawalakhel, Nepal http://www.wlink.com.npReceived on Tue Sep 04 2007 - 10:32:06 MDT
This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:02 MDT