class Amazonite::CloudWatchLogs::CSV

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

Defined in:

cloudwatch_logs/csv.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(quote_character : String | Nil = nil, delimiter : String | Nil = nil, columns : Array(String) | Nil = nil, source : String | Nil = nil, destination : String | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def columns : Array(String) | Nil #

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.


[View source]
def columns=(columns : Array(String) | Nil) #

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.


[View source]
def delimiter : String | Nil #

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.


[View source]
def delimiter=(delimiter : String | Nil) #

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.


[View source]
def destination : String | Nil #

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.


[View source]
def destination=(destination : String | Nil) #

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.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def quote_character : String | Nil #

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.


[View source]
def quote_character=(quote_character : String | Nil) #

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.


[View source]
def source : String | Nil #

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.


[View source]
def source=(source : String | Nil) #

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.


[View source]
def validate! : Nil #

[View source]