Search squid archive

RE: SquidNT - Compressing rotated logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So simple I'm disgusted I didn't think of it.

Thanks. 


Paul Cocker
IT Systems Administrator
IT Security Officer

01628 81(6647)

TNT Post (Doordrop Media) Ltd.
1 Globeside Business Park
Fieldhouse Lane
Marlow
Bucks
SL7 1HY

-----Original Message-----
From: Henrik Nordstrom [mailto:henrik@xxxxxxxxxxxxxxxxxxx] 
Sent: 20 September 2007 21:51
To: Paul Cocker
Cc: squid-users@xxxxxxxxxxxxxxx
Subject: Re:  SquidNT - Compressing rotated logs

On tor, 2007-09-20 at 12:31 +0100, Paul Cocker wrote:
> Since I'm running SquidNT there's no native log rotation method. I'm 
> writing a batch file to handle this, but I would like to zip up the 
> archive copies of the log to save space, seeing as how store.log and 
> access.log are 500MB+ each in less than a week. Thing is, I want to 
> run this from the command line, preferably without relying no any 3rd 
> party solutions.

Here is one idea using only Windows:

Create a log archival directory, configure it to be compressed and that
files stored there should get automatically compressed. Then in your
batch job that rotates the logs, copy the logs there and let the
filesystem compress them for you..

Regards
Henrik




TNT Post is the trading name for TNT Post UK Ltd (company number: 04417047), TNT Post (Doordrop Media) Ltd (00613278), TNT Post Scotland Ltd (05695897),TNT Post North Ltd (05701709) and TNT Post South West Ltd (05983401). Emma's Diary and Lifecycle are trading names for Lifecycle Marketing (Mother and Baby) Ltd (02556692). All companies are registered in England and Wales; registered address: 1 Globeside Business Park, Fieldhouse Lane, Marlow, Buckinghamshire, SL7 1HY.



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux