The Artima Developer Community
Sponsored Link

.NET Buzz Forum
[Tool] Easier log parsing with Log Parser

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Roy Osherove

Posts: 1807
Nickname: royo
Registered: Sep, 2003

Roy Osherove is a .Net consultant based in Israel
[Tool] Easier log parsing with Log Parser Posted: Jan 10, 2004 9:08 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Roy Osherove.
Original Post: [Tool] Easier log parsing with Log Parser
Feed Title: ISerializable
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/rosherove/Rss.aspx
Feed Description: Roy Osherove's persistent thoughts
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Roy Osherove
Latest Posts From ISerializable

Advertisement

Speaking of parsing log files, There's a little known tool called LogParser, and it's from the Microsoft IIS team. This very powerful parser can easily parse various kinds of log files and you can actually query against the data in a log file in an SQL-like syntax, or output the log into one of several formats, one of which is XML.

You can read more about this little known tool over at www.logparser.com (maintained by Mike Gunderloy). I recommend you take a long hard look and add it to your developer tool belt.

If you look at my log parsing article this tool covers all the functionality needed in that article out of the box. However, one thing this version does not do is parse log records that span multiple lines. For example:

RecordStart

Start: 10.22.53

User: Name

Action: something

RecordEnd

This kind of record in a log file cannot be parsed by LogParser, but using my technique you can parse this with relatively little effort. However, I'm told by Mike that the next version of LogParser will feature multiple line parsing, but you'd have to write your own plugin into the parser to achieve that (and it's plugin architecture will be based on COM, how's that for progress?)

Still, this is something I wish I'd looked into earlier (I've known about the tool but never actually checked it out)

Read: [Tool] Easier log parsing with Log Parser

Topic: .NET Nightly 84 Previous Topic   Next Topic Topic: Gates: It's time for convergence

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use