|
The
program supports Combined and Common log formats of Apache web
server. We recommend you to use the Combined log format because the
Common log format doesn't contain information about referrers and
user agents (OS, browsers, spiders). By default Apache uses the
Common log format but the majority of hosting providers set the
Combined log format for Apache on their servers.
Here is a
sample of log entry in Combined format:
213.135.131.79 - - [15/May/2002:19:21:49
-0400] "GET /features.htm HTTP/1.1" 200 9955
"http://www.weblogexpert.com/download.htm" "Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; Q312461)"
Log format
can be configured by editing the "httpd.conf" file in the Apache
conf directory (if you have access to this file). The configuration
settings for the log file should look like the following:
# The following
directive defines the "combined" nickname
LogFormat "%h %l %u %t \"%r\" %>s %b
\"%{Referer}i\" \"%{User-Agent}i\"" combined
# The location and format of the access log
file
CustomLog logs/access.log combined
If your Apache log files contain
information about multiple virtual domains (sites) hosted on the
same server you can also use the following configuration
settings:
# The following
directive defines the "combinedvhost" nickname
LogFormat "%h %l %u %t \"%r\" %>s %b
\"%{Referer}i\" \"%{User-Agent}i\" %v" combinedvhost
# The location and format of the access log
file
CustomLog logs/access.log
combinedvhost
In this
case log entries will have Combined format with one extra field
(virtual domain). WebLog Expert needs this information if you use
the "virtual domain" filter.
You can
read more about Apache logs at http://httpd.apache.org/docs/logs.html
|