[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] HOW TO: Compress old web logs to separate filenames???
- Subject: Re: [cobalt-developers] HOW TO: Compress old web logs to separate filenames???
- From: "Taco Scargo" <taco.scargo@xxxxxxx>
- Date: Tue May 29 16:02:51 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Have a look at /etc/logrotate.conf
rotate 1
This means 'keep one copy'
With regards,
Taco Scargo
Professional Services Manager, EMEA
Sun Microsystems Tel. +31 (71) 565 7021
Sun Cobalt Server Appliances taco.scargo@xxxxxxx
----- Original Message -----
From: "Ervin Tarkhanian" <ervin@xxxxxxxxxx>
To: <cobalt-developers@xxxxxxxxxxxxxxx>
Sent: Wednesday, May 30, 2001 12:01 AM
Subject: [cobalt-developers] HOW TO: Compress old web logs to separate
filenames???
> Hi All,
>
> I'd like to know how I could go about compressing the web log files to
> different file names. It seems that the logrotate scripts compress the
all
> the logs, but they overwrite the previously compressed log file. I'd like
> to keep all of the logs and get rid of them later. I know it's got
> something to do with logrotate, but I can't find any info on how to "save"
> the compressed log file in sequentially numbered filenames...
>
> web.log.1.gz
> web.log.2.gz
> web.log.3.gz
>
> and so on.
>
>
> For that matter, if I could include the date into the filename, that would
> be even better.
>
> web.log.010527.gz
> web.log.010528.gz
> web.log.010529.gz
>
>
> Any help is appreciated.
>
> TIA
> Best regards,
> Ervin Tarkhanian
> AVETAR Interactive
> 818.705.3415 Tel.
> 818.345.8368 Fax.
> ervin@xxxxxxxxxx
> www.avetar.com
>
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>