Matt Probert wrote:
> Do that, and get Analog. It has instructions on extracting the logs
> relevant to separate domains (I believe, but as its free it wont hurt
> to try).
Doubt it. Apache logs use a pretty useless format from that perspective.
Sample:
207.190.242.236 - - [15/Apr/2004:18:32:43 +0100] "GET / HTTP/1.1" 200 2607 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"
207.190.242.236 - - [15/Apr/2004:18:32:43 +0100] "GET /g5n-logo-black.png HTTP/1.1" 200 9354 "http://www.goddamn.co.uk/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"
207.190.242.236 - - [15/Apr/2004:18:32:44 +0100] "GET /style.css HTTP/1.1" 200 462 "http://www.goddamn.co.uk/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)"
193.217.39.248 - - [15/Apr/2004:18:43:05 +0100] "GET / HTTP/1.1" 200 5935 "http://home.online.no/~ingerfaj/hjemmesider.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
Clue: the access_log files don't include the requested host name
You really need to do one of:
(a) configure Apache to log requests for different domains into
different log files. You will need to look into the CustomLog[1]
directive; or
(b) configure Apache to use a different[2] log format. You will
need to look into the LogFormat[3] and CustomLog directives. Clue:
%{Host}i
Unfortunately these directives *cannot* be set in .htaccess files -- they
must be done in the main server config or vhost config files.
________
[1] <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#customlog" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#customlog</a>
[2] Of course, a different log format may confuse log file analysers.
[3] <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#logformat" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#logformat</a>
--
Toby A Inkster BSc (Hons) ARCS
Contact Me - <a style='text-decoration: underline;' href="http://www.goddamn.co.uk/tobyink/?page=132" target="_blank">http://www.goddamn.co.uk/tobyink/?page=132</a><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: web traffic analysis