CSV Output Format

Log Parser

CSV Output Format

The CSV output format writes output records as comma-separated values text.

The output of the CSV output format consists of multiple lines of text, one line for each output record.
Each line contains the values of the output record fields, separated by a comma (,) character. Depending on the value of the oDQuotes parameter, field values can be enclosed within double-quote characters (").
If enabled through the headers parameter, the first line in the output is a "header" that contains the names of the fields.

The following sample shows the output of the CSV output format when using the default values for its parameters:

EventID,SourceName,EventType,TimeGenerated
6009,EventLog,4,2004-04-18 18:48:04
6005,EventLog,4,2004-04-18 18:48:04
7024,Service Control Manager,1,2004-04-18 18:48:27
7035,Service Control Manager,4,2004-04-18 18:48:27
7035,Service Control Manager,4,2004-04-18 18:48:27
7036,Service Control Manager,4,2004-04-18 18:48:27
7036,Service Control Manager,4,2004-04-18 18:48:27
7035,Service Control Manager,4,2004-04-18 18:48:27
7036,Service Control Manager,4,2004-04-18 18:48:27
7035,Service Control Manager,4,2004-04-18 18:48:27
7036,Service Control Manager,4,2004-04-18 18:48:27
7035,Service Control Manager,4,2004-04-18 18:48:27
7036,Service Control Manager,4,2004-04-18 18:48:27
7035,Service Control Manager,4,2004-04-18 18:48:27
7036,Service Control Manager,4,2004-04-18 18:48:27
7036,Service Control Manager,4,2004-04-18 18:48:27
7035,Service Control Manager,4,2004-04-18 18:48:36
7036,Service Control Manager,4,2004-04-18 18:51:26
7036,Service Control Manager,4,2004-04-18 18:51:29
6006,EventLog,4,2004-04-18 18:51:37

Files created with the CSV output format are suitable to be consumed by a large number of applications that handle CSV text files, including Microsoft Excel and generic spreadsheet applications.


Into-Entity Syntax
Parameters
Examples


See also:

TSV Output Format
CSV Input Format


© 2004 Microsoft Corporation. All rights reserved.