in reply to Apache log piped to Perl
I'd consider de-coupling this from the apache log handler. Set up a CustomLog to a file and write/borrow:) a log tail-er(perldoc -f seek), which runs from inittab (or a daemon), that processes log entries without intefering with Apache. This has the added benefit, of serialising the process (no fork required), and you won't hit process/resource limits when your webserver gets slammed.
That aside, I don't see why the above script shouldn't work. Are you defining the CustomLog in the server config, or a VirtualHost section? If you set the CustomLog to a file, does anything get written to it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Apache log piped to Perl
by Anonymous Monk on Aug 09, 2006 at 08:48 UTC |