Friday, May 28, 2010

Parsing logfiles

For a client we are investigating a range of log files from different sources. To simplify this task we are projecting all different log formats to the same structured CSV file.

We first started writing some custom log parsers, until I found this tool: Log Parser.

An extract from the documentation:

Log Parser 2.2 is a powerful, versatile tool that provides universal query access to text-based data such as log files, XML files and CSV files, as well as key data sources on the Windows operating system such as the Event Log, the Registry, the file system, and Active Directory.  You tell Log Parser what information you need and how you want it processed. The results of your query can be custom-formatted in text based output, or they can be persisted to more specialty targets like SQL, SYSLOG, or a chart.  Most software is designed to accomplish a limited number of specific tasks. Log Parser is different... the number of ways it can be used is limited only by the needs and imagination of the user.  The world is your database with Log Parser.

No comments: