class
Amazonite::CloudWatchLogs::CSV
- Amazonite::CloudWatchLogs::CSV
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch_logs/csv.crConstructors
- .new(pull : JSON::PullParser)
- .new(quote_character : String | Nil = nil, delimiter : String | Nil = nil, columns : Array(String) | Nil = nil, source : String | Nil = nil, destination : String | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#columns : Array(String) | Nil
An array of names to use for the columns in the transformed log event.
-
#columns=(columns : Array(String) | Nil)
An array of names to use for the columns in the transformed log event.
-
#delimiter : String | Nil
The character used to separate each column in the original comma-separated value log event.
-
#delimiter=(delimiter : String | Nil)
The character used to separate each column in the original comma-separated value log event.
-
#destination : String | Nil
The path to the parent field to put transformed key value pairs under.
-
#destination=(destination : String | Nil)
The path to the parent field to put transformed key value pairs under.
-
#hash(hasher)
See
Object#hash(hasher) -
#quote_character : String | Nil
The character used used as a text qualifier for a single column of data.
-
#quote_character=(quote_character : String | Nil)
The character used used as a text qualifier for a single column of data.
-
#source : String | Nil
The path to the field in the log event that has the comma separated values to be parsed.
-
#source=(source : String | Nil)
The path to the field in the log event that has the comma separated values to be parsed.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.