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]

RE: CRONOLOG: symlink to previous log



Hello,
We run our setup with daily logrotation by simply using
CustomLog "|/usr/local/sbin/cronolog \
--symlink=/var/log/httpd/access_log \
/usr/local/httpd/logs/%Y/%m/%d/access_log" common
i.e. no symlink to the previous logfile needed
Best regards,
..............................
Martin Emmerich
Leitung IT
Oestreicher + Wagner
Medientechnik GmbH
Frankenthaler StraÃe 20
D-81539 MÃnchen
Fon   +49 (0)89-68961 171
Fax   +49 (0)89-68961 271
-----Original Message-----
From: Filip Sergeys tc [mailto:fsergeys-tc@xxxxxxxxxxxxxxxx]
Sent: Wednesday, October 16, 2002 12:19 PM
To: cronolog-users@xxxxxxxxxxxxxxxxxx
Subject: CRONOLOG: symlink to previous log
Hi, 
I'm trying out cronolog, but can't seem to get symlink to the previous
logfile to work. It keeps pointing to the current logfile. 
According to the manual, you need to define the symlink to the current
logfile too, as that one is used to make the symlink to the previous log
(if I understood well) 
Here is a snippet from our apache config file. We opted for the
/YEAR/month/day directory structure. As this makes it easy to do monthly
zips of the old logfiles. The logfile should be rotated every day (this
works OK, as is the symlink to the current logfile). 
Is this line correct? If it is, any hints on why the prev. symlink
points to the current logfile? 
CustomLog "| /usr/local/sbin/cronolog -p 1days \ 
-S /usr/local/apache/logs/eccent_curr_log \ 
-P /usr/local/apache/logs/eccent_prev_log \ 
/usr/local/apache/logs/%Y/%m/%d/eccent_access_log" common 
Thanks in advance, 
Sincerely, 
Filip 

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