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: half the logs work the other half doesn't



Are their actually rows written to the log files that dont rotate after they
should have rotated?  ie, do rows for oct 30th get written to the oct 29th 
log files?


On Oct 30 1139, Richard Kline wrote:
> Hello
> 
> First of all thanks to Jim Halfpenny and Martin Klingensmith for their
> help, I did slap my forehead and say "doh". As this is only my 4th day
> using cronolog I still have 3 logs to sort out. I'm more than determined
> to stick with cronolog now.
> 
> The error_log and access_log are now turning over nicely. The problem is
> with my ssl and mod_jk logs. Using various combinations of the cronolog,
> like in my error and access logs. I just could not get the logs to
> rotate, if I switched back to using normal default logging all is fine.
> The logs I'm having problems with, (which work with rotatelogs)
> ssl_request_log, ssl_engine_log and mod_jk.log. I've pasted all the
> relevant stuff from httpd.conf below. I've tried all the combinations I
> could think of.
> 
> The ssl_request_log.
> 
> #CustomLog "|/opt/apache/bin/rotatelogs /opt/apache/logs/ssl_request_log
> 86400" 
> #CustomLog "|/usr/local/sbin/cronolog
> /backup/logdir/%Y-%m-%d-ssl_request_log"
> #CustomLog "|/usr/local/sbin/cronolog --period=\"1 day\"
> --symlink=/backup/logdir/ssl_request_log
> /backup/logdir/%Y-%m-%d-ssl_request_log"
> 
> <VirtualHost _default_:443>
> blah
> blah
> CustomLog /backup/logdir/ssl_request_log \
>          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
> #CustomLog "|/usr/local/sbin/cronolog --period=\"1 day\"
> --symlink=/backup/logdir/ssl_request_log
> /backup/logdir/%Y-%m-%d-ssl_request_log" \
> 	   "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
> </VirtualHost>
> 
> The ssl_engine_log.
> 
> #CustomLog "|/opt/apache/bin/rotatelogs /opt/apache/logs/ssl_engine_log
> 86400"
> #CustomLog "|/usr/local/sbin/cronolog
> /backup/logdir/%Y-%m-%d-ssl_engine_log"
> #CustomLog "|/usr/local/sbin/cronolog --period=\"1 day\"
> --symlink=/backup/logdir/ssl_engine_log
> /backup/logdir/%Y-%m-%d-ssl_engine_log"
> 
> <IfModule mod_ssl.c>
> blah
> blah
> SSLLog /backup/logdir/ssl_engine_log
> #SSLLog "|/usr/local/sbin/cronolog --period=\"1 day\"
> --symlink=/backup/logdir/ssl_engine_log
> /backup/logdir/%Y-%m-%d-ssl_engine_log"
> SSLLogLevel info
> #
> </IfModule>
> 
> The mod_jk.log.
> 
> #CustomLog "|/opt/apache/bin/rotatelogs /opt/apache/logs/mod_jk.log
> 86400"
> #CustomLog "|/usr/local/sbin/cronolog
> /backup/logdir/%Y-%m-%d-mod_jk.log"
> #CustomLog "|/usr/local/sbin/cronolog --period=\"1 day\"
> --symlink=/backup/logdir/mod_jk.log /backup/logdir/%Y-%m-%d-mod_jk.log"
> 
> # TOMCAT
> #
> #
> #
> JkWorkersFile    /usr/local/tomcat/conf/jk/workers.properties
> JkLogFile        /backup/logdir/mod_jk.log
> #JkLogFile 	     "|/usr/sbin/cronolog --period=\"1 day\"
> --symlink=/backup/logdir/mod_jk.log /backup/logdir/%Y-%m-%d-mod_jk.log"
> JkLogLevel       debug
> JkLogStampFormat "[%a %b %d %H:%M:%S $Y] "
> 
> The above is my working config just now, but the 3 logs wont rotate, can
> someone point me in the right direction please.
> 
> Thank you in advance
> 
> Rick Kline 
> 
> 
> 
> 
> 
> 

-- 
#######################################################################
# Matt Grosso           cell    (201)780-9592   mgrosso@xxxxxxxxxxxxx #
# work ny (212)324-1904 fax ny  (212)324-1910   work sf (415)348-7756 #
# pgp public key is at http://www.falconweb.com/~mattg/publickey.pgp  #
#######################################################################




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