Centralized W3C Logging
Just learned about this cool new feature included with W2k3 SP1. On top of centralized binary logging, you will now get centralized w3c logging! To enable it,
adsutil.vbs set w3svc/CentralW3CLoggingEnabled true
This will give you centralized text format logging for all website! Cool huh ?
Here's the sample log entries:
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
2005-05-25 21:52:36 127.0.0.1 GET /iisstart.htm - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322) 200 0 0
2005-05-25 21:54:17 127.0.0.1 GET /aspnet_client - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322) 403 14 5
2005-05-25 21:55:55 127.0.0.1 GET /aspnet_client - 801 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322) 301 0 0
Take note that:
a) you can't customize the log filed ! as it's w3c format (without certain fields like cs-refer, cs-version, etc)
b) there's no site id or website identifier in the log! In the above log sample, the 2nd and 3rd requests is actually to two different websites (I used port 801 in another website). With no site id logged, it might be difficult to analyze each website activities in this centralized format.
And finally, here's the official detail from Microsoft about W3C centralized logging.
Updated 27/05/05 3pm.
Thanks to Matt, I was wrong :) you can configure what fields to be logged. Do this at Web Sites, right mouse - properties - at the 'Enable logging' section, click properties, then click on Advanced tab, select the desire fields.