Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Write logging utility, or does one exist

by magog (Beadle)
on May 04, 2005 at 22:01 UTC ( [id://454147]=note: print w/replies, xml ) Need Help??


in reply to Write logging utility, or does one exist

I stopped using logrotate because it tried to HUP Apache one morning at 4AM and accidentally killed it.

There are a couple of utilities along the lines of what you're suggesting: Cronolog and vlogger.

I use Cronolog for Apache logfiles. I like it, but it does spawn a lot of processes (1 per logfile, and therefore 2 per virtualhost).

I've been meaning to play around with vlogger, which seems to be designed to minimize the number of spawned processes.

Both of these read from STDIN and rotate logfiles, but I don't believe that either one can filter based on regexes.

Michael

  • Comment on Re: Write logging utility, or does one exist

Replies are listed 'Best First'.
Re^2: Write logging utility, or does one exist
by afresh1 (Hermit) on May 05, 2005 at 00:55 UTC
    I use a fairly well customized version of logger.pl for my Apache logs. The benefit is that the script doesn't need to be in Apache's chroot (since I have Apache in a chroot).
    --
    andrew

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://454147]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-20 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found