Re: Reading IIS Logs into SQL Server

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 06/12/04


Date: Fri, 11 Jun 2004 18:27:09 -0700

Log Parser, a freely available tool from Microsoft, sounds the ideal
solution to this. It allows one to make SQL queries against regularly
delimited log files, including IIS and many others, like event log, and
optionally inject the results into SQL or display on the console. It has
both commandline and COM interface. I've only scripted it from the
commandline as administrator, but assuming your ASP page has privileges to
access the log file in question, I assume it should work.

http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en

There are many users of Log Parser out there (I think there's a MS newsgroup
as well), so you should search a little for additional support.

-- 
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Frank Rizzo" <Frank_X_Rizzo@hotmail.com> wrote in message
news:e5a750db.0406081854.62d8cd71@posting.google.com...
I have searched around for an answer to my question before posting
here. I want to scan IIS ( IIS5 and IIS6 ) log files peridocally, load
them into a SQL Server table based on some filtering criteria such as
what pages a user came in (cs-method) on, what session they had
(cs(User-Agent)), and where they came from (cs(Referer)). I then will
take that data and create simple usage reports. I have only found the
IISLog built-in COM object. The logs files size is between 10 and 40MB
per day. Will this cause me any problems? Is this the best way to read
and process IIS logs? Does anyone whos sells web reporting tools also
provide a COM inteface so I could use the functionality in ASP?
Thanks
--Frankie


Relevant Pages

  • Re: SQL Server 2005 Express Ed (KB 921896): errorcode 0x65B
    ... Can you search these log files for the ... The automatic update of my MS SQL Server 2005 Express ... Package Language: 1043 ... Product Installation Status ...
    (microsoft.public.windowsupdate)
  • Re: 20GB Partion C: running out of space
    ... SQL data and log files usually use .mdf & .ldf. ... Are you properly backing up your SQL database? ... Are you using Exchange for email? ...
    (microsoft.public.windows.server.sbs)
  • Re: 20GB Partion C: running out of space
    ... Are these .log files in your Windows folder really large? ... just text files that log install information and aren't too big. ... exchange database to D: ...
    (microsoft.public.windows.server.sbs)
  • Re: SQL installation recommendations
    ... and log files are predominately sequential write. ... Jasper Smith (SQL Server MVP) ... > Database files on separate partitions and what the reasons for doing so ... > The system I plan to install SQL 2005 on is using SCSI disks and it has 3 ...
    (microsoft.public.sqlserver.setup)
  • Re: Interperting IIS Log Syntax
    ... I recommend the Log Parser if you like to play around with SQL and want to ...
    (microsoft.public.inetserver.iis.security)