cronolog.org
flexible web log rotation
HOME
DOWNLOAD
FEATURES
USAGE
FAQ
BLOG
KNOWN BUGS
SECURITY
PATCHES
USERS
TO DO
HISTORY
LINKS
FEEDBACK
MAILING LIST
ADVERTISING

support cronolog development



Google   HELP


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

Cronolog and gzip


  • To: cronolog-users@xxxxxxxxxxxxxxxxxx
  • Subject: Cronolog and gzip
  • From: "Jay W. Reffner" <reffner@xxxxxxxxxxx>
  • Date: Sun, 01 Dec 2002 18:40:54 -0500
  • Organization: The University of Findlay
  • User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2) Gecko/20021126

I was wondering if there was a way for cronolog to redirect the apache log files directly to a gzip file.  I would like to combine these two lines if possible???

CustomLog "|/usr/bin/gzip -c >> /var/log/access_log.gz" common

CustomLog "|/usr/local/sbin/cronolog /usr/local/apache2/logs/access.%Y%m%d.log" common

Anyone got any ideas?  Maybe this?
CustomLog "|/usr/bin/gzip -c >> /usr/local/sbin/cronolog /usr/local/apache2/logs/access.%Y%m%d.log" common
Would that work or am I better off gzipping the files with cron at midnight?

TIA,
Jay

Copyright © 1996-2010 Andrew Ford and Ford & Mason Ltd