[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] HOW TO: Compress old web logs to separate filenames???
- Subject: [cobalt-developers] HOW TO: Compress old web logs to separate filenames???
- From: "Ervin Tarkhanian" <ervin@xxxxxxxxxx>
- Date: Tue May 29 14:44:22 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
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