Introduction
IIS-Generated Server Logs... is there no better way to past the time than looking through the HTTP_REFERRERS field and taking a look at who's linking to your page (and posting unsavoury comments about bandwidth-hogging image leeching?) Or how about seeing how many of your visitors are foolish enough to be using Internet Explorer still?
But alas! Whenever you leave the comfort of a workstation with FTP Client software are you not deprived of this enchanting pastime?
Fear no more, fair netizens! for there is now a solution! LogAnal can parse your web-server's logfiles even if you can't get to them! View your stats from ANYWHERE in the world!
Requirements
Its the usual fodder for this sort of script:
- IIS 4.0 or above
- Or any ASP-VBS enabled server
- Scripting.FileSystemObject
- File System access to your logfiles folder
- Permission to completely waste your server's CPU time for about 10 seconds
- Ability to password protect folders (not required, but recommended)
Installation Instructions
Instructions.txt is included in the Zip
- Open the ASP file
- Download or open an existing IIS logfile from the same server and ensure that
strHeadersmatches your currently selected logging fileds (if you don't the outputted table will look a right mess) - Change the
objFSO.OpenTextFile()path argument to match your server's logfiles directory - Save the changes and upload to a directory in your
htdocsor otherwise publically accessible folder - You may want to password protect the folder to prevent other people from viewing your logs... for obvious reasons
- ...Also because if you access your hosting control panel from the same domain as your server, then your control panel login cookie, including plaintext username and password will be visible
Usage Instructions
- Navigate to the directory you placed the LogAnal script in
- I dunno... like
http://www.yourdomain.tld/misc/loganal.asp - Append the filename of the log, excluding file extension to the end
of the URI you just typed in, preceeded by a
? - Like so:
http://www.yourdomain.tld/misc/loganal.asp?ex050115, will get the logfileex050115.log, which is for 15th January 2005
Download
LogAnal.zip (1.94KB)
Help
Sorry, but you're on your own for this one. Thousands of people download these files (proven by this script itself, oh the irony), so I cannot provide support for everyone, just post it up on some forum, such as ASPFree and ask around