|
|
To print: Select File and then Print from your browser's menu
-------------------------------------------------------------- This story was printed from ZDNet Australia. --------------------------------------------------------------
|
Maximising IIS logging By Rick Vanover, TechRepublic October 29, 2002 URL: http://www.zdnet.com.au/news/security/soa/Maximising-IIS-logging/0,130061744,120269451,00.htm
Multiple options for logging user access activity are available when you manage Microsoft Internet Information Services (IIS) Web servers.
I'm going to show you the various logging options and explain what you can do with this valuable data once you gather it.
IIS logging options
To set up the logging options, you need to open the IIS management console from Start | Programs | Administrative Tools | Internet Services Manager. To see the logging properties, expand the computer name of the IIS server you want to look at and right-click on the Web site (such as Default Web Site) you want to set up. Figure A shows an example of the Properties sheet. Figure A
IIS 5.0 offers four options to log your Web server activity. You select these from the Active Log Format drop-down list, highlighted in yellow in Figure A. The four options are:
Each logging type offers a particular benefit, and you can switch types on the fly without affecting the status of any services for IIS. The only thing to keep in mind is that a new log file for the current log period (per day, by default) will be created with a different pair of leading characters denoting the type of logging. The default logging method for IIS 5.0, the W3C Extended Log File Format, is a standard defined by the World Wide Web Consortium (W3C). This logging format can divulge a large amount of information on the activity of your IIS server, and IIS lets you drill down to select which options you want to log. You configure the options by clicking the Properties button (highlighted in green in Figure A) after selecting the desired log format. Specifying which variables you want to log can make interpretation a lot easier and more useful. Figure B shows an example of some of the available W3C options. This isn't the complete list, but you can review full descriptions of all the options from Microsoft's Windows 2000 Server Documentation. Figure B
Viewing log files
User activity To demonstrate what an IIS log file would look like, I did some testing in which I used Internet Explorer 5 on Windows 2000 Professional, Internet Explorer 6 on Windows XP, and Netscape 4.76 on Linux as the test computers to show log activity. All three systems showed up correctly (OS and browser compatibility) in the logging on the Web server. I also used IIS for anonymous and nonanonymous connections. (I used Outlook Web Access and other nonanonymous areas of the Web site.) Click here to view the log sample.
PerfMon PerfMon has notable limitations, as it does not show a clear number of users or provide the specific username like the logs. Further, busy Web sites (such as Outlook Web Access) represent a large number of nonanonymous connections and shoot the counter up quickly for one user. However, PerfMon is useful for providing some additional statistics. For more information on PerfMon monitoring, check out the Windows 2000 Resource Kit. There are various ways to use the information PerfMon provides. If the IIS server hosts your commercial Web site, you can get a basic look at the analytics of your visitors. If the Web server hosts your company intranet, you now have a concrete look at who is visiting and how they are utilising your site.
Outlook Web Access (OWA)
Third-party software
The logging advantage TechRepublic is the online community and information resource for all IT professionals, from support staff to executives. We offer in-depth technical articles written for IT professionals by IT professionals. In addition to articles on everything from Windows to e-mail to fire walls, we offer IT industry analysis, downloads, management tips, discussion forums, and e-newsletters.
Copyright © 2009 CBS Interactive, a CBS Company. All Rights Reserved. |