httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject [PATCH]: mod_logio.c
Date Mon, 16 Sep 2002 13:44:36 GMT
This patch is against the current CVS and it enables logging the number
of input/output bytes per request, which is then useful for producing
actual statistics per virtual host or whatever else.

I have tested the module lightly and it works for me. The trick was to
employ both connection and request based filters and link them together.
I did that through connection notes. I'm not sure if this is the correct
way of doing things, but it does seem to produce accurate numbers in my
tests. I would really appreciate if someone could take a look and verify
if this is something that can be worked with.

The quick configuration is:

-------------------------
SetInputFilter LOGIO
SetOutputFilter LOGIO
-------------------------

And also:

-------------------------
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"
%I %O" combinedio
-------------------------

Of course, I'll be documenting the whole thing in the next few days...

Bojan

PS. Thanks everyone, especially Justin, for the hints and help!

Mime
View raw message