Apache logfile format

Wytze van der Raay wytze at nlnet.nl
Fri Aug 8 11:54:27 CEST 2003


On Wed, Aug 06, 2003 at 03:25:31PM +0200, Nils Sowen wrote:
> I was wondering whether logreport is able to deal with the following custom 
> logfile format:
>                                       "%V: %h [%a] %{%s}t \"%f\" %>s %B 
> \"%{User-Agent}i\" \"%{Referer}i\""
> which would look like this:
>                    www.logreport.org: remote.dns.de [123.123.123.123] 
> 1060176102 "/my/path/to/virtualhost/index.html" 200 2468 "Mozilla/4.0
>                    (compatible)"    "http://www.google.de/?referer=test"
> 
> I tried it with both "common" and "combined" but it (of course) didn't 
> work. I didn't find anything about defining own logfile formats so I'm 
> asking you guys. (BTW: I got modlogan working with this format, but I'm not 
> satisfied with modlogan's features so I'm checking out
> logreport right now ;))
> 
> Can anybody help?

LogReport's Lire  supports a limited number of logfile formats
"out of the box", including a.o. "common", "combined", "modgzip"
and "w3c_extended".
But since all www reports are generated from a common intermediate
format, the www superservice DLF (distilled logfile), Lire can handle
alternative formats by supplying a converter for the new format.
The www DLF schema is described in www/www.xml, and also in chapter 12
of the developer's manual.
You can use an existing converter, e.g. www/script/combined2dlf,
and modify it to suit your particular format.

One thing to note though is that the www DLF does not accomodate a
virtual host (%V) field. It's assumed that you want to produce reports
per virtual host, and have split up the logfiles accordingly.
If you don't want to do that, you could perhaps instruct your DLF
convertor to concatenate the %V and %f fields into the DLF's
requested_page field.

Regards,
Wytze van der Raay

-- 
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of 
"unsubscribe". Trouble? Send an email with subject "help" to 
questions-request at logreport.org



More information about the Questions mailing list