Home arrow ASP arrow Page 5 - View Your Web Servers Log Files With ASP
ASP

View Your Web Servers Log Files With ASP


Mike knows the pain and frustration of having a web server crash unexpectedly... it happens when we least expect it. In this article, he's going to describe a simple way to create an ASP page that will allow us to view our web servers log files in a standard web page across the Internet.

Author Info:
By:
Rating: 5 stars5 stars5 stars5 stars5 stars / 57
December 28, 2001
TABLE OF CONTENTS:
  1. · View Your Web Servers Log Files With ASP
  2. · Windows 2000 and log files
  3. · The MSWC logging utility
  4. · The ShowLogEntries sub-routine
  5. · Conclusion

print this article
SEARCH DEVARTICLES

View Your Web Servers Log Files With ASP - Conclusion
(Page 5 of 5 )

Using the MSWC.IISLog class, you can easily create web pages, ActiveX controls, COM+ components, or even XML representations of your web servers log file(s). Shown below is a list of some things that you might want to try:
  • Add a record-paging feature to the ShowLogDetails sub-routine described in this article. Allow the user to page forward and backwards through the log entries using “Previous” and “Next” buttons.
  • Create a COM+ component in Visual Basic that will allow you to enter a date. Using this date, make the COM+ component automatically retrieve the log file for that day and return the results as a string of well-formed, valid XML.
  • Create an ASP script that will automatically extract your log entries and write them to a database. You can use the WriteLogRecord method of the MSWC.IISLog class to help you do this easily.

DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus
ASP ARTICLES

- Central Scoreboard with Flash and ASP
- Calorie Counter Using WAP and ASP
- Creating PGP-Encrypted E-Mails Using ASP
- Be My Guest in ASP
- Session Replacement in ASP
- Securing ASP Data Access Credentials Using t...
- The Not So Ordinary Address Book
- Adding and Displaying Data Easily via ASP an...
- Sending Email From a Form in ASP
- Adding Member Services in ASP
- Removing Unconfirmed Members
- Trapping HTTP 500.100 - Internal Server Error
- So Many Rows, So Little Time! - Case Study
- XDO: An XML Engine Class for Classic ASP
- Credit Card Fraud Prevention Using ASP and C...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials