'------------------------------------------------------------------------------- '------------------------------------------------------------------------------- '-- CreateStats.vbs and CreateStats.asp '-- '-- http://tomspeirs.com/webalizer/ '-- '-- This script Generate the usage statistics for each IIS web site configured '-- on the computer using Webalizer. '-- '-- If you use or extend these scripts, I would like to hear from you '-- tom@tomspeirs.com '-- '-- Based on VBS Script 'Stats.vbs' by Author: Cédric Caron '-- I hope you don't mind me porting your Code to Webalizer and ASP. '-- '-- Webazlizer ASP and VBSCRIPT, For IISVersion 'CreateStats.vbs' and 'CreateStats.asp' By Tom Speirs (tom@tomspeirs.com) '-- History: '-- 5.May.2002: Version 1.11. '-- 2.January.2002: Version 1.01. '-- '------------------------------------------------------------------------------- '------------------------------------------------------------------------------- '-- Instructions for the ASP version. '-- Create a Directory 'Webalizer' in your Root Web. e.g C:\inetpub\wwwroot\webalizer '-- Copy this Script (optionally with Webalizer for Win32) to your wwwroot directory '-- In IIS Adminstration - create an Application for the Directory. '-- Running with Low Protection (IIS Service) (This will not work otherwise) '-- Ensure the user running the ASP page has Administrator rights. '-- You can do this under the Directory Security properties in IIS Manager '-- For the Webalizer directory. Select 'Edit' Authentication/Anonymous Access Control. '-- Then either change the account used for anonymous access to an Administrator account '-- or diable anonymous access, enable Windows authentication, and when '-- accessing the page - login as an Administrator (This is safest for Production Servers) '-- '-- You also need to Configure the App options for the ISS Application for the Webalizer Dir '-- to have a greater timeout. For example, if you are processing half a years logs '-- for a busy server, you should configure this for about 10 Minutes '-- (600 seconds). Although it could take longer, depending on the size of Log Files '-- and the speed of your Server. '-- '-- The page runs the Windows Convlog utility first, to ensure your logs '-- are in a suitable format for Webalizer to process. '-- '-- If you have Webalizer installed in another directory other than the location of '-- this page, change the variable webalizercommand below '-- I have tested this on Win2k Pro SP2, Win2k Adv Server SP2, and NT4 Server SP6a. '-- only in IE 5.5 SP2 I am afraid. Although I can't see that it will have problems with anything else. '------------------------------------------------------------------------------- '------------------------------------------------------------------------------- '-- Instructions for the VBS version. '-- Set the Date range using the DateStart and DateEnd variables '-- Set the WebalizerCommand Variable to where webalizer.exe is located '-- Just ensure you are logged in as an Administrator '-- and your Virus Software won't stop VBS Scripts running, '-- and run the script. Select VerboseMode to true if you have problems. '------------------------------------------------------------------------------- '-------------------------------------------------------------------------------