Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a dashboard to analyze IIS web traffic

I am using Windows Server 2003 with IIS6 and Windows Server 2008R2 with IIS7. I need to create a dashboard similar to google analytics that we be view via webpage by non-technical users. I figure this could be done analyzing IIS log files but I am not sure what the best route is for accomplishing this.

What is the best way to create a dashboard that can be access be a to analyze IIS web traffic?

Is analyzing IIS log files the best way to go?
If so, which IIS logging format would be best for this?
Is ODBC logging that that big of a performance hit?

Are there any free or cheap apps out there to accomplish this?

like image 625
Kenneth J Avatar asked Sep 01 '10 20:09

Kenneth J


People also ask

How do I analyze IIS log files?

With the IIS Log Analyzer, log files from all of an organization's IIS web servers can be consumed, parsed, and analyzed in one centralized location. This provides full visibility into the IIS infrastructure as well as insight into the performance of all applications running on these servers.

How do I see IIS events?

From the Start menu, point to Administrative Tools, and then click Computer Management. Event Viewer is listed under the System Tools node. The benefit of this display is that IIS Manager is in the same window under the Services and Applications node.

Why do we create traffic in IIS?

Using the IIS Log HTTP Traffic Volumes LayoutIt enables you to see at-a-glance which client queries are driving high byte volume responses from an IIS server, which may point to areas that need further investigation.


1 Answers

One option is to create an application that uses Microsoft's LogParser tool. It supports a variety of file formats and allows you to query the IIS log files with SQL-like syntax. It also provides a programmable COM API that can be utilized from .NET. There are numerous examples of using LogParser available. Below are a few links, as well a the official forum.

http://www.codinghorror.com/blog/2005/08/microsoft-logparser.html

http://linuxlore.blogspot.com/2006/11/howto-use-microsofts-logparser-to.html

http://support.microsoft.com/kb/910447

http://weblogs.asp.net/rrobbins/archive/2007/12/03/asp-net-code-to-query-ftp-logs-using-logparser.aspx

http://www.codeproject.com/KB/recipes/SimpleLogParse.aspx

http://gluegood.blogspot.com/2008/09/freeware-logparserzip.html

You can also find a few example projects that use LogParser on CodePlex.

In terms of free apps, a couple I know of include:

  • IIS Advanced Logging Extension - Has some sort of analytics integration, but I'm not sure of the details.
  • Web Log Analyzer - Fairly new, but source code is provided.
  • SmartStats - It is a commercial product that's not too expensive, but also provides a free edition that can be used from a single server
like image 110
Garett Avatar answered Sep 20 '22 16:09

Garett