RE: [squid-users] SquidNT - Compressing rotated logs

From: Paul Cocker <paul.cocker@dont-contact.us>
Date: Fri, 21 Sep 2007 11:08:08 +0100

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@henriknordstrom.net]
Sent: 20 September 2007 21:51
To: Paul Cocker
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] 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.
Received on Fri Sep 21 2007 - 04:07:00 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:02 MDT