Thanks for the quick response.

I already have %b in use for the access_log file and this works just fine.

However, for Apache::DBILogConfig the %b is specified in the PerlSetVar
DBILog_Config_log_format directive, and Apache::DBILogger has the %b embedded in
its perl script.

Using the DBI packages, the %b value is zero for access to sites via the proxy,
but is a valid value for accesses to the local server itself.  I can't
understand why the value is zero for access to sites via the proxy when all the
other fields passed to the DBI modules are correct for both proxy and local
accesses, and a non-zero value shows in access_log for proxy and local accesses.

I can't tell whether this is an apache bug (apache 1.3.9) in the api, or a bug
in mod_perl, or (very unlikely) a bug in both of the Apache::DBILogger-0.93 and
Apache::DBILogConfig-0.01 modules.

>From the debugging I have done so far, this would appear to be either that
apache isn't funishing the value to mod_perl, or mod_perl isn't furnishing the
value to the DBI modules.  I don't know how to debug this any further.  Any
ideas?

BTW I assume %B is identical to %b, but %B is not in the apache documentation.

Best Regards,

Brian


Eric Cholet wrote:

> > I presume from the lack of response that nobody knows the answer to this
> > one? Or have I sent this to the wrong mailing list?  Or is it a stupid
> > question?
> >
> > Best Regards,
> >
> > Brian
> >
> > "Brian S. Craigie" wrote:
> >
> > > Can anyone tell me how to turn on logging of the bytes through the proxy
> > > please?
> > >
> > > Many thanks,
> > >
>
> Check out the Apache doc for module mod_log_config, directive LogFormat.
> The format specifier %b or %B is what you're looking for.
>
> --
> Eric

Reply via email to