Dan Bright's .NET Weblog

Log Parser Tool 2.0

Microsoft has released a cool little utility for searching log files.

The Log Parser 2.0 tool lets you run SQL-like queries on log files of almost any format, and then display the results in a file format of your choice, in a SQL database, or on a screen. Log Parser is available as a command-line tool and as a set of scriptable Component Object Model (COM) objects.

You can use Log Parser to:

  • Quickly search for data and patterns in log files.
  • Create a variety of reports.
  • Export data to a SQL database.
  • Convert data between different file formats.

Log Parser supports the following input formats:

  • IISW3C: Internet Information Services (IIS) W3C Extended format.
  • IIS: IIS-formatted and IIS-generated log files.
  • IISMSID: Generated when the MSIDFILT filter or the CLOGFILT filter is installed.
  • ODBC: IIS Open Database Connectivity (ODBC) format that reads data directly from the SQL table populated by IIS when the Web server is configured to log to an ODBC target.
  • NCSA: National Center for Supercomputing Applications (NCSA) format.
  • BIN: Binary file format that is generated by IIS 6.0. Contains the requests received by the virtual Web sites on the same server running IIS 6.0.
  • URLSCAN: Generated by the URLScan filter if it is installed on IIS.
  • HTTPERR: IIS 6.0 HTTP error log files format.
  • W3C: W3C log file format, such as for personal firewall, Windows Media Services, and Exchange tracking logs.
  • EVT: Event messaging format from the Windows Event log, including system, application, security, and custom event logs, as well as from event log backup files.
  • FS: File information from the specified path, such as file size, creation time, and file attributes. It is similar to an advanced dir command.
  • CSV: Generic comma-separated value format.
  • TEXTWORD: Generic text format.
  • TEXTLINE: Generic text format.

Comments

Mike Gunderloy said:

Allow me to mention the Log Parser 2.0 FAQ I've put together - http://www.larkware.com/Articles/LogParser2.0Help.html - it's a solid tool but there are some pretty rough edges.
# March 18, 2003 5:27 AM

TrackBack said:

Log Parser is a tool available from Microsoft that allows you to run SQL queries against log files and send the information to a SQL Database or other file formats. In this article I describe the capabilities of Log Parser and how you can use it as a set of COM interfaces from your application.
# January 11, 2004 11:16 PM

Jim Ley said:

I am looking for some sample script to use Log Parser with Visual Basic 2003
# January 23, 2004 12:25 PM

BlogSearcher said:

Great article you got here. It would be great to read a bit more about that matter. The only thing I would like to see on that blog is some pics of some devices.

Kate Flouee

<a href="www.jammer-store.com/">mobile phone jammer</a>

# July 6, 2010 9:34 PM

exclusive escort said:

It was rather interesting for me to read the article. Thanks for it. I like such topics and everything connected to them. I would like to read a bit more soon. BTW, pretty good design you have here, but don’t you think design should be changed once in a few months?

Whitny Smith

# July 11, 2010 2:06 AM

indian escort east london said:

It is extremely interesting for me to read the article. Thank author for it. I like such topics and anything that is connected to them. I would like to read a bit more soon.

John Stepman

# July 16, 2010 10:29 PM

female companion said:

Pretty interesting article to spend some time on reading it at least for me. The only question I have, why don't you send that article to social media? That should bring lots of traffic to this page.

# July 21, 2010 10:38 PM

latin female escorts said:

I would like to read a bit more on that blog soon. BTW, rather good design you have here, but don’t you think design should be changed every few months?

Chloe William

# July 24, 2010 10:01 AM

Jane Trider said:

It was rather interesting for me to read that article. Thanx for it. I like such topics and everything that is connected to this matter. I definitely want to read more soon. By the way, pretty nice design this site has, but don’t you think design should be changed every few months?

Jane Trider

<a href="http://www.baccaratgirls.com">London female escorts</a>

# August 2, 2010 12:28 PM

escorts in geneva said:

Keep on posting such themes. I love to read articles like this. Just add more pics :)

# August 31, 2010 7:30 PM

Joan Hakkinen said:

It is extremely interesting for me to read that article. Thanx for it. I like such topics and anything that is connected to this matter. I definitely want to read more soon.

Joan Hakkinen

<a href="irelandescortdirectory.com/.../belfast-escorts">escort agencies belfast</a>

# October 1, 2010 6:10 PM

Julia Benedict said:

Pretty cool place you've got here. Thanx for it. I like such themes and anything connected to them. I definitely want to read more on that blog soon.  

Julia Benedict    

<a href="www.pickescort.com/">escorting uk</a>

# April 19, 2011 1:59 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)