Freeware Custom LogParser Input - ZIP
Last post Jan 05, 2009 02:21 PM by joelangley
Sep 11, 2008 08:34 AM|gluegood|LINK
After reading a few comments about lack of LogParser being able to parse the contents of multiple ZIP files (without STDIN feature) I decided to do something about it.
I have created a Custom LogParser Input plug-in that can parse files inside of Zip, GZip, Tar and BZip2 file(s) using any of the existing LogParser Input plugins (and their parameters). e.g. CSV, IIS, TSV etc and -HeaderRow:On etc. The program unzips each
file, parses it and then deletes the file before continuing onto the next (reducing disk requirements).
The LogParser.ZIP add-in uses
#ZIPLib. I hope the code is useful for anyone interested in either writing their own Custom LogParser COM plugin, or using the LogParser COM APIs (using dotNET reflection).
EXE and VB.NET 2005 source from
e.g. Sample query
LogParser.exe -i:COM "select * From 'C:\IISLogs\2008*.zip'" -iProgId:Gluegood.LogParser.ZIP -iCOMParams:iQuery="Select * From *.txt",iInputParameters="-i:CSV -HeaderRow:Off" -o:DataGrid
Jan 05, 2009 02:21 PM|joelangley|LINK
gluegood..this is awesome...gonna try this now :)