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



Hi

The assces_log and the error_log on all 4 webservers behave as they're
supposed to, with one exception. The web servers access and error logs
don't actually rotate until accessed. 

For example, my webserver 4 (ws04) on the 29th Oct the last access to it
was;

207.250.187.161 - - [29/Oct/2003:20:11:31 +0000] "CONNECT 1.3.3.7:1337
HTTP/1.0" 302 278 "-" "-"

But ws04 on the 30th Oct the first access to it was;

10.0.100.106 - - [30/Oct/2003:08:55:40 +0000] "GET
/irace/iHome/mainMenu_10.jsp
HTTP/1.0" 200 11004 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT
5.0)"
And the log was created at that time.

So no is the answer to your question. My ssl and mod_jk.log logs has
been left at their default apache setup, as I can not get cronolog to
work with them. In fact, even if I use the --symlink option, cronolog
won't create the files and/or rotate the default ones. I have checked
the obvious dir permissions ect...

Thanks again  

Rick Kline 
Senior Systems Engineer 

VISiTV 

Phone: +44 1382 341000
email:   richard.kline@xxxxxxxxxx 
  

 




> -----Original Message-----
> From: Matthew Grosso [mailto:mgrosso@xxxxxxxxxxxxx] 
> Sent: 30 October 2003 15:57
> To: Richard Kline
> Cc: cronolog-users@xxxxxxxxxxxxxxxxxx
> Subject: 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