My LogFormat directive is :
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined
The %D stands for "Time taken to serve the request, in microseconds"
the result log entry is, for example :
192.168.1.100 - - [01/Mar/2006:17:31:00 +0100] "GET /jsp-examples/ HTTP/1.1" 200 16576 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv: 1.8.0.1) Gecko/20060 111 Firefox/1.5.0.1" 6560
The custom log format is described in http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats
Rgds
Antoine.
2006/4/6, Bernie Durfee <
[EMAIL PROTECTED]>:
Is there a way to have Apache 2.2 output access logs in W3C "Extended Log Format"? I'm specifically trying to get
elapsed request time into the log, in a standard way, so that I can pick the value up in WebTrends 7. It seems like the
W3C format is the only way that it can get into the log and be picked up by WebTrends. Any ideas?
Thanks,
Bernie
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]