AlterWind Log Analyzer Professional. Log analysis software for search engine optimization and website promotion.

Log file Configuration String

    The configuration string of the log format is a simplified string for the Apache server (http://www.apache.org). For specifying dates there are some additions. String can contain literal characters copied into the log files, and `%' directives which are replaced in the log file by the values as follows:

%b or %B Bytes sent, excluding HTTP headers.
%{Foobar}e The contents of the environment variable Foobar
%h Remote host
%H The request protocol
%{Foobar}i The contents of Foobar: header line(s) in the request sent to the server
%l Remote logname (from identd, if supplied)
%m The request method
%q The query string (prepended with a ? if a query string exists, otherwise an empty string)
%r First line of request
%s Status
%t Time, in common log format time format (standard english format)
%{format}t The time, in the form given by format.
%T The time taken to serve the request, in seconds
%u Remote user (from auth; may be bogus if return status (%s) is 401)
%U The URL path requested
%v Virtual domain
%z Any other parameter, not taken into account by analyzer


    Date format

    There could be the following values is the format string:

day 2*digit
month 3*letter or 2*digit
year 4*digit
hour 2*digit
minute 2*digit
second 2*digit
zone 4*digit or 3*letter


    Special symbols

    Use following combinations:

\" Double quotation marks
\' Single quotation marks
\t Horizontal tab


    Examples of the format strings

    Apache combined:
%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"

    Apache common
%h %l %u %t \"%r\" %>s %b

    IIS 5.0
%{year-month-day hour:minute:second}t %h %u %z %m %U %q %s %b %z %T %z %v %{User-Agent}i %z %{Referer}i

© 2002-2008 AlterWind Software