AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The CSV processor parses comma-separated values (CSV) from the log events into columns.

For more information about this processor including examples, see csv in the CloudWatch Logs User Guide.

Inheritance Hierarchy

System.Object
  Amazon.CloudWatchLogs.Model.CSV

Namespace: Amazon.CloudWatchLogs.Model
Assembly: AWSSDK.CloudWatchLogs.dll
Version: 3.x.y.z

Syntax

C#
public class CSV

The CSV type exposes the following members

Constructors

NameDescription
Public Method CSV()

Properties

NameTypeDescription
Public Property Columns System.Collections.Generic.List<System.String>

Gets and sets the property Columns.

An array of names to use for the columns in the transformed log event.

If you omit this, default column names ([column_1, column_2 ...]) are used.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property Delimiter System.String

Gets and sets the property Delimiter.

The character used to separate each column in the original comma-separated value log event. If you omit this, the processor looks for the comma , character as the delimiter.

Public Property QuoteCharacter System.String

Gets and sets the property QuoteCharacter.

The character used used as a text qualifier for a single column of data. If you omit this, the double quotation mark " character is used.

Public Property Source System.String

Gets and sets the property Source.

The path to the field in the log event that has the comma separated values to be parsed. If you omit this value, the whole log message is processed.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer