/AWS1/CL_CWLCSV¶
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.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_quotecharacter TYPE /AWS1/CWLQUOTECHARACTER /AWS1/CWLQUOTECHARACTER¶
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.
iv_delimiter TYPE /AWS1/CWLDELIMITER /AWS1/CWLDELIMITER¶
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.
it_columns TYPE /AWS1/CL_CWLCOLUMNS_W=>TT_COLUMNS TT_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.
iv_source TYPE /AWS1/CWLSOURCE /AWS1/CWLSOURCE¶
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.
iv_destination TYPE /AWS1/CWLDESTINATIONFIELD /AWS1/CWLDESTINATIONFIELD¶
The path to the parent field to put transformed key value pairs under. If you omit this value, the key value pairs will be placed under the root node.
Queryable Attributes¶
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_QUOTECHARACTER() |
Getter for QUOTECHARACTER, with configurable default |
ASK_QUOTECHARACTER() |
Getter for QUOTECHARACTER w/ exceptions if field has no valu |
HAS_QUOTECHARACTER() |
Determine if QUOTECHARACTER has a value |
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DELIMITER() |
Getter for DELIMITER, with configurable default |
ASK_DELIMITER() |
Getter for DELIMITER w/ exceptions if field has no value |
HAS_DELIMITER() |
Determine if DELIMITER has a value |
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_COLUMNS() |
Getter for COLUMNS, with configurable default |
ASK_COLUMNS() |
Getter for COLUMNS w/ exceptions if field has no value |
HAS_COLUMNS() |
Determine if COLUMNS has a value |
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_SOURCE() |
Getter for SOURCE, with configurable default |
ASK_SOURCE() |
Getter for SOURCE w/ exceptions if field has no value |
HAS_SOURCE() |
Determine if SOURCE has a value |
destination¶
The path to the parent field to put transformed key value pairs under. If you omit this value, the key value pairs will be placed under the root node.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DESTINATION() |
Getter for DESTINATION, with configurable default |
ASK_DESTINATION() |
Getter for DESTINATION w/ exceptions if field has no value |
HAS_DESTINATION() |
Determine if DESTINATION has a value |