Class CfnTransformerPropsMixin.CsvProperty
The CSV processor parses comma-separated values (CSV) from the log events into columns.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Logs
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnTransformerPropsMixin.CsvProperty : CfnTransformerPropsMixin.ICsvProperty
Syntax (vb)
Public Class CfnTransformerPropsMixin.CsvProperty Implements CfnTransformerPropsMixin.ICsvProperty
Remarks
For more information about this processor including examples, see csv in the CloudWatch Logs User Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.Logs;
var csvProperty = new CsvProperty {
Columns = new [] { "columns" },
Delimiter = "delimiter",
QuoteCharacter = "quoteCharacter",
Source = "source"
};
Synopsis
Constructors
| CsvProperty() | The |
Properties
| Columns | An array of names to use for the columns in the transformed log event. |
| Delimiter | The character used to separate each column in the original comma-separated value log event. |
| QuoteCharacter | The character used used as a text qualifier for a single column of data. |
| Source | The path to the field in the log event that has the comma separated values to be parsed. |
Constructors
CsvProperty()
The CSV processor parses comma-separated values (CSV) from the log events into columns.
public CsvProperty()
Remarks
For more information about this processor including examples, see csv in the CloudWatch Logs User Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.Logs;
var csvProperty = new CsvProperty {
Columns = new [] { "columns" },
Delimiter = "delimiter",
QuoteCharacter = "quoteCharacter",
Source = "source"
};
Properties
Columns
An array of names to use for the columns in the transformed log event.
public string[]? Columns { get; set; }
Property Value
string[]
Remarks
If you omit this, default column names ( [column_1, column_2 ...] ) are used.
Delimiter
The character used to separate each column in the original comma-separated value log event.
public string? Delimiter { get; set; }
Property Value
Remarks
If you omit this, the processor looks for the comma , character as the delimiter.
QuoteCharacter
The character used used as a text qualifier for a single column of data.
public string? QuoteCharacter { get; set; }
Property Value
Remarks
If you omit this, the double quotation mark " character is used.
Source
The path to the field in the log event that has the comma separated values to be parsed.
public string? Source { get; set; }
Property Value
Remarks
If you omit this value, the whole log message is processed.