Re: [squid-users] large logfiles

From: Joseph Erlewein <[email protected]>
Date: Wed, 19 Dec 2001 08:32:11 -0500

I ran into this issue. There are a couple things you can do.
Default log level is ALL,1 - you can change it to ALL,0. I believe that will disable logging altogether.
'squid -k rotate' will make squid rotate your log files pertainant to the rotation directives in squid.conf. how many to keep, etc...
Or... you _could_ use /var/log/blah to log your logs into and instruct /etc/logrotate.conf accordingly.
I tried the latter but it caused issues with other "special" shiz that we do here, so I ended up letting squid manage itself, with a little help from a cron job with the -k rotate directive. I haven't tried messing with the log level, it just occurred to me as a possible solution. Might want to man that option. But I don't think there's an easy way to just have it stop logging when it hits the end of your disk. It's not good practice to log this way anyway. I'd go for no logging over partial logging, if it were me, if rotated logging simply can't be done at all - thats the best way. Anyway I suppose you could just tell squid to log to /dev/null for that matter... or maybe to a tty just for kicks....

-jre

Joseph R. Erlewein
Information Center Specialist
Munson Healthcare
jerlewein@mhc.net

>>> Michal Medvecky <M.Medvecky@sh.cvut.cz> 18.Dec.2001 06.24.31 >>>
Hi,

I have large proxy with small space for logfiles (no money for another drive :)

Squid default behavior is to stop when there is no more space available for logfiles. Is there a possiblity to tell squid not to stop when the partition for logfiles is full and simply ignore any new log lines?

Thank you

michal
Received on Wed Dec 19 2001 - 06:32:34 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:05:24 MST