Thank you!
I used serveral ways ,
I)squid/sbin/squid -k ratate
mv squid/var/logs/access.log.0 /data/tmp/access.log
II)mv squid/var/logs/access.log /data/tmp/access.log
squid/sbin/squid -k reconfigure
III)cp squid/var/logs/access.log /data/tmp/access.log
cat /dev/null > squid/var/logs/access.log
IV)cat squid/var/logs/access.log > /data/tmp/access.log
cat /dev/null > squid/var/logs/access.log
But these ways not good for me ,either slow down my system,
even I use nice -n or somtimes squid will not work after -k rotate , -k reconfigure.
My squid log file grow 200M an hour .
----- Original Message -----
From: "Mohsin Khan" <aaghaz00@yahoo.com>
To: "blade" <blade@dudu.com>; <squid-users@squid-cache.org>
Sent: Friday, June 11, 2004 5:23 AM
Subject: Re: [squid-users] About squid log rotate
> how do you rotate log, squid -k rotate?....use cat
> log_file > new_log_file;>log_file. Use a script like
> that.
>
> You must be having large log files, and processing
> them will slow down the system
>
> --- blade <blade@dudu.com> wrote:
> > HI,ALL
> > I use squid 2.5.STABLE5 .And patch squid ,so i can
> > get log like apache log format.
> > I use squid rotate to get squid log hourly for web
> > analyzer ,
> > but sometimes after squid rotate log ,squid
> > suddenly
> > get ESTABLISHED links from 4000 to 8000 ,10000,at
> > the same time,
> > the site can not be visited . From mrtg graph ,
> > traffic go greatly down.
> > so i have to restart squid .
> > can anybody kind to tell me good solution to rotate
> > squid log ?
> >
> > Thanks,
> > Blade
>
>
> =====
> Regards,
> Mohsin Khan
> CCNA ( Cisco Certified Network Associate 2.0 )
> http://www.aaghaz.net
>
> >>>Happy is the one who can smile<<<
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
Received on Fri Jun 11 2004 - 01:49:08 MDT
This archive was generated by hypermail pre-2.1.9 : Thu Jul 01 2004 - 12:00:02 MDT