Re: what is the best way to read text file

From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 02/14/05


Date: Mon, 14 Feb 2005 13:27:48 -0600

On Mon, 14 Feb 2005 13:47:30 -0500, "Alvin Bruney [MVP]" <vapor at steaming post office> wrote:

Alvin,

¤ logfiles follow a different formats depending on the various supported
¤ standards.
¤
¤
¤ If you are looking to parse the log file for errors or just security
¤ concerns, you should instead resort to Microsoft's log parser utility which
¤ ships free as an IIS resource download instead of re-inventing the wheel to
¤ implement your own functionality. It contains the ability to parse logfiles
¤ by firing legitimate sql queries against the raw text file.
¤
¤
¤
¤ It's quite a remarkable piece of machinery actually. The log parser utility
¤ is a command line tool with no GUI interface so you have to learn all the
¤ nuts and bolts. But i've built a web GUI front end that sits on top of
¤ logparser available on www.logparser.com. Serverstats, which is open source
¤ by the way, eliminates the need for the user to learn sql queries and the
¤ nuts and bolts of the logparser utility which can be a bit intimidating. You
¤ can point and click your way thru any w3c extended log file format.

Do you know what the file extensions for these log files are?

Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)



Relevant Pages

  • [ANN] Apache::LogRegex 1.1 minor bugfix release
    ... Apache::LogRegex - Parse a line from an Apache logfile into a hash ... Designed as a simple class to parse Apache log files. ... The field names of the hash are derived from the log file format. ...
    (comp.lang.perl.modules)
  • ANN: Apache::LogRegex 1.2
    ... Designed as a simple class to parse Apache log files. ... lines from the log file line by line returning a hash of each line. ...
    (comp.lang.perl.modules)
  • Re: Parsing a odd log file format
    ... like to understand how to deal with the part of my log file that is ... of my goal is to understand the language not just parse logs :-) ... once, so you should be able to solve it again, of learning the grammar ... Parse all the lines as csv, and the ones where you don't have the ...
    (comp.lang.lisp)
  • Re: what is the best way to read text file
    ... logfiles follow a different formats depending on the various supported ... If you are looking to parse the log file for errors or just security ... It contains the ability to parse logfiles ...
    (microsoft.public.dotnet.framework)
  • Re: Parsing a log file
    ... > I need to parse a log file and generate a formatted output. ... Hashtable, where the filenames in the log are used as keys, and an ...
    (comp.lang.java.programmer)