CSV Output Format Examples

Log Parser

CSV Output Format Examples

File Information

Create a CSV file containing information on the files contained in the specified directory:
LogParser "SELECT Path, Name, Size, Attributes INTO Files.csv FROM C:\Test\*.*" -i:FS -o:CSV -recurse:0

Security Events

Retrieve the 10 latest events from the Security event log and write their information to a CSV file for each event ID:
LogParser "SELECT TOP 10 EventID, EventTypeName, Message INTO Events_*.csv FROM Security" -i:EVT -direction:BW -o:CSV


© 2004 Microsoft Corporation. All rights reserved.