logparser
Stable release | 2.2.10
/ 2005-04-20 |
---|---|
Operating system | Windows Server 2003 |
Type | Tool |
License | Free |
This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. (July 2024) |
logparser is a flexible command line utility that was initially written by Gabriele Giuseppini,[1] a Microsoft employee, to automate tests for IIS logging. It was intended for use with the Windows operating system, and was included with the IIS 6.0 Resource Kit Tools. The default behavior of logparser works like a "data processing pipeline", by taking an SQL expression on the command line, and outputting the lines containing matches for the SQL expression.
Microsoft describes Logparser as 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. The results of the input query can be custom-formatted in text based output, or they can be persisted to more specialty targets like SQL, SYSLOG, or a chart.
Common use:
> logparser <options> <SQL expression>
Example: Selecting date, time and client username accessing ASPX-files, taken from all .log-files in the current directory.
> logparser -i:IISW3C -q "SELECT date, time, cs-username FROM *.log WHERE cs-uri-stem LIKE '%.aspx' ORDER BY date, time;
"
References
[edit]- ^ "Microsoft Log Parser Toolkit". Archived from the original on 2013-01-28.
External links
[edit]- Microsoft Log Parser 2.2 - the official Microsoft download page.
- Log Parser Lizard - a GUI for Log Parser
- The Unofficial Log Parser Home Page - a collection of Log Parser references
- Professor Windows - May 2005 - How Log Parser 2.2 Works - article by Gabriele Giuseppini (creator of Log Parser)
- Examples (SQL) queries for IIS Analysis - a collection of Log Parser examples
- Under the hood of LogParser - article Jeff Atwood
- Log Parser Plus - queries/tutorials to help you analyze logs
- Logparser.OLEDB - a freeware OLEDB input format plugin
Archived links
[edit]The following links are only available through the Internet Archive:
- Log Parser Studio - a GUI Utility for Log Parser
- Visual Log Parser - a GUI for Log Parser
- Log Parser Forums - while the original, dedicated Log Parser forums are gone, you can still view the contents in the archives or try a keyword search of Microsoft's QnA forums
- Microsoft Log Parser overview page - informational article on Microsoft's scripting tools website