class
Amazonite::CloudWatchLogs::ParseKeyValue
- Amazonite::CloudWatchLogs::ParseKeyValue
- Reference
- Object
Overview
This processor parses a specified field in the original log event into key-value pairs.
For more information about this processor including examples, see parseKeyValue in the CloudWatch Logs User Guide.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch_logs/parse_key_value.crConstructors
- .new(pull : JSON::PullParser)
- .new(source : String | Nil = nil, destination : String | Nil = nil, field_delimiter : String | Nil = nil, key_value_delimiter : String | Nil = nil, key_prefix : String | Nil = nil, non_match_value : String | Nil = nil, overwrite_if_exists : Bool | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#destination : String | Nil
The destination field to put the extracted key-value pairs into
-
#destination=(destination : String | Nil)
The destination field to put the extracted key-value pairs into
-
#field_delimiter : String | Nil
The field delimiter string that is used between key-value pairs in the original log events.
-
#field_delimiter=(field_delimiter : String | Nil)
The field delimiter string that is used between key-value pairs in the original log events.
-
#hash(hasher)
See
Object#hash(hasher) -
#key_prefix : String | Nil
If you want to add a prefix to all transformed keys, specify it here.
-
#key_prefix=(key_prefix : String | Nil)
If you want to add a prefix to all transformed keys, specify it here.
-
#key_value_delimiter : String | Nil
The delimiter string to use between the key and value in each pair in the transformed log event.
-
#key_value_delimiter=(key_value_delimiter : String | Nil)
The delimiter string to use between the key and value in each pair in the transformed log event.
-
#non_match_value : String | Nil
A value to insert into the value field in the result, when a key-value pair is not successfully split.
-
#non_match_value=(non_match_value : String | Nil)
A value to insert into the value field in the result, when a key-value pair is not successfully split.
-
#overwrite_if_exists : Bool | Nil
Specifies whether to overwrite the value if the destination key already exists.
-
#overwrite_if_exists=(overwrite_if_exists : Bool | Nil)
Specifies whether to overwrite the value if the destination key already exists.
-
#source : String | Nil
Path to the field in the log event that will be parsed.
-
#source=(source : String | Nil)
Path to the field in the log event that will be parsed.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The destination field to put the extracted key-value pairs into
The field delimiter string that is used between key-value pairs in the original log events. If
you omit this, the ampersand & character is used.
The field delimiter string that is used between key-value pairs in the original log events. If
you omit this, the ampersand & character is used.
If you want to add a prefix to all transformed keys, specify it here.
If you want to add a prefix to all transformed keys, specify it here.
The delimiter string to use between the key and value in each pair in the transformed log event.
If you omit this, the equal = character is used.
The delimiter string to use between the key and value in each pair in the transformed log event.
If you omit this, the equal = character is used.
A value to insert into the value field in the result, when a key-value pair is not successfully split.
A value to insert into the value field in the result, when a key-value pair is not successfully split.
Specifies whether to overwrite the value if the destination key already exists. If you omit
this, the default is false.
Specifies whether to overwrite the value if the destination key already exists. If you omit
this, the default is false.
Path to the field in the log event that will be parsed. Use dot notation to access child fields.
For example, store.book
Path to the field in the log event that will be parsed. Use dot notation to access child fields.
For example, store.book