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: [help] OSX & Cronolog: Newbie



|/usr/sbin/cronolog /Library/Webserver/Documents/Logs/%Y/%m/test.log

in the 'Access Log' field of my development site.

restarted and... well nothing!

Does anyone know if this is not correct? Am I meant to edit something in my
httpd.conf file? If so, which bit (OS X has two and has some pretty
confusing instructions on what can and can't be changed manually!)


Also, I tried to run 'man cronolog' but et a 'not found error', and can't
find any sign of cronolog in '/usr/locl/sbin/' or '/usr/local/bin/' so feel
something may not be happy...

Ours installed itself in /bin/

Assuming yours did too your log line needs to be...

|/bin/cronolog  /Library/Webserver/Documents/Logs/%Y/%m/test.log

We have pretty well abandoned the Apple GUI tools but if you want to continue to use them you need to turn logging off for your site (yes I know it sounds wierd) and then manually edit the httpd_macosxserver.conf fle.

Look for the following line in the virtual host...

CustomLog "/dev/null" "%h %l %u %t \"%r\" %>s %b"

And add an extra line so it looks like this...

CustomLog "/dev/null" "%h %l %u %t \"%r\" %>s %b"
CustomLog "|/bin/cronolog /Library/Webserver/Documents/Logs/%Y/%m/test.log"


This actually explained in section 7 at the top of the httpd_macosxserver.conf file.

The trouble with this method is that if you have a lot of virtual hosts you get a separate cronolog process running for each site.

We ended up creating one 'overall' log for all our virtual hosts. If you want to do this I can give more instructions.

Been running os 8/9 based websrvers for many years, so not totally new to
the whole business.. just struggling with the switch to X.

We went through the same thing - stick with it, its worth it in the end.

Paul




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