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]

Status update (was Re: CRONOLOG: cronolog without /bin/sh)



Sven Köhler wrote:

I'm trying to find the best way to run cronolog without having to keep a copy
of /bin/sh in my Apache chroot. Since Apache's external logging mechanism
requires it be there, |cronolog doesn't really work for me. The two options


Are you sure?
That would mean, that i should have /bin/sh within my pstree, but apache seems to be the _direct_ parent of my cronlog processes, so no /bin/sh is running.


- Using named pipes, logging directly to them, and reading from them with cronolog. This seems basically the same as what |cronolog is doing, but doesn't need a shell. Can anyone tell me if there could be problems with this?


that would be the option that i would dislike the most.

- Using the cronolog module. This has been in beta for quite a while, but
seems like the "fewest moving parts" strategy. What are the things that
keep it considered a beta?


It won't work for Apache 2.0 as far as i know. is that correct?
It might be consired as stable what Apache 1.3 concerns.


I think I owe the list a status update. I promised to bring out a new version of cronolog a couple of months ago, but then I had a hard disk failure just before I was due to deliver some software to a client. Of course I had neglected my backups for a month or so because I was so busy and it has taken about five weeks of non-chargeable work to get back to where I was. (I think there is a moral to this tale...)

Anyway there will be a new cronolog version when I can get round to it (of course I lost the work I had done on cronolog too). Or rather two new versions: 1.6.3 and 2.0beta. The main new features in the former are the inclusion of a signal handler to avoid zombie processes and reworked conifgure script (to get rid of the compilation errors on BSD). There are also a couple of patches in my mail box that I'll incorporate. The latter version is a complete rewrite.

Another feature that I've been thinking of is to have an option for cronolog to parse the log entries for a key field to split on (as well as on current time). This would allow Apache to be configured such that you didn't end up with a swarm of cronolog processes. The key field would normally be the virtual host name (or a nickname), and I had envisaged having a command line option to specify the name of a mapping file that gave the field value to filename template mapping (possibly even allowing names to be specified as regular expressions); the key field could be suppressed from the output or not. I was originally against such a feature as I thought that cronolog should be a simple filter program, but I think that this would be OK as if no key field/mapping file was specified, the program would still work just as a simple filter. As this is a major new feature I will delay it until after 1.6.3.

Because I have got so much work backed up I cannot give a date as to when I'll get the new versions out, but I will try and find time as soon as possible.

Andrew

--
Andrew Ford, Director Ford & Mason Ltd / Pauntley Press
A.Ford@xxxxxxxxxxxxxxxx South Wing, Compton House ford-mason.co.uk Compton Green, Redmarley Tel: +44 1531 829900
pauntley-press.co.uk Gloucester, GL19 3JB Fax: +44 1531 829901
refcards.com Great Britain Mobile: +44 7785 258278





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