Re: Log Rotating Script/Utility

From: KAWATO Katsushi <kawato@dont-contact.us>
Date: Mon, 09 Jun 1997 11:47:42 +0900

"Mervin B. Manangan" wrote:
>Hi! I'm one of the users who is amazed with the capabilities and results
>produced by squid. I just have one question, do you have any script or
>utility for the logs rotation scheme? You see, our server's disk space
>is constantly monitored though we have lowered down the threshold of the
>configuration of squid to 75% Still we still experience squid process
>dying down due to full capacity of our disk partitions (mainly because
>of the logs). Please give me some details as to how to go about the
>rotating of the logs. Thank you :-)

Squid already has built-in log rotate function, but it doesn't
support compression.

Here is a patch for compression.

begin 644 squid-1.1.10-compressor-patch04.gz
Y'XL("(]KFS,"`W-Q=6ED+3$N,2XQ,"UC;VUP<F5S<V]R+7!A=&-H,#0`[5C[<Z/($?Y9^BOZM.6-?
YM)(PZ&4)WUZMXM<ZY5?9<BZYRQ6%8!#42:!C8.W-G?_W=,\``CVPMBI))55FM4)F>GJF']_7/=B>S
YXT`[#F^`_Q9[=EM3\)^J!*$W.^2A=2B>*E;@.\HR9(KG%^2VBU3;[?:^ZBJ3F,%X&4*G`ZJF=XYT=
YK0?::'14;3:;>ZQ5>8A]N#:_`N"TOM[MZ#U-SO_T"=JC0:<U@";=NAWX]*D*[_`S#V:.-V=&&$1F,
YQ$!3JU!MO@.8C"]T*`X:3U[D&E:PP-4X+Y>:_=-;H@1^*H_<G+%R79#^H"<+T[=I'LAKEW:@KYP\-
Y?DJ7.(QY>#CU_,.<`3MU"^&9'XL)TI9->\4&YNP+FX,P])[-XCDY,7(9\"5C-@1.9IH7^!!SSY^E_
YPY;G>"AB>S,O@G<MTO#DLA!C`)YO>Q9JXD+6,3G^C`J:%BQR`QOJ\[SW<*!!:M`A,%I3PN?!TRXEE
YT[6!AD):)CC+9HX9SXNSI,4>AP'4(]>,\&<+II[)T9@H>#)#FX/KS5S2D9^'DNQYR7S.R"W"/PT%1
YUBXG#!90PY"*\-:*<<TY?(`!@30@YA+5VH8=+$S$)#ZOC,43CJ&RS#DD`[ZYP-@$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N^Z-FR!BDN2[W.8U.'$]/T@:
Y@@#+>\JQ>`KF=`J6V2"2Y?-D<G=")X)+WPG:/Z0':M(6TY$).WOC]/)A_.>K,Q)WS,B<UVM;="NU;
Y567_CW4.D.L<7@<W=D3;T2T&2N$M)`1'"WQW03U"@M:[1Z7XEK,V`9YO](]Z@J3%_0W@;P#/&ON^#
Y)O-BT,^U]M+IF%?BZ&;#][+K2<'?5U/PHXA<YHJP?\"+4&\!O;'`KA]#("IM,K^#DS6<_T#S:5,S8
Y.CW8'C>G<T8OS/[',)V]!=N&Z]Q@";9S4IL'^;04;\5W?N8:QC5=':PP/NQ3)/'[#=]O^$[P/9+O8
B=]7TW)YIE6'=4)LE6WH\_V\<R-,7Q@3%?P'C;\75.B```.8:H
``
end
------------------------------------------------------------------
    KAWATO Katsushi
    NEC Informatec Systems, Ltd., Japan
    E-Mail: kawato@ksp.nis.nec.co.jp
------------------------------------------------------------------
Received on Sun Jun 08 1997 - 19:52:30 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:29 MST