class
Amazonite::CloudWatchLogs::Grok
- Amazonite::CloudWatchLogs::Grok
- Reference
- Object
Overview
This processor uses pattern matching to parse and structure unstructured data. This processor can also extract fields from log messages.
For more information about this processor including examples, see grok in the CloudWatch Logs User Guide.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch_logs/grok.crConstructors
- .new(pull : JSON::PullParser)
- .new(match : String, source : String | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#match : String
The grok pattern to match against the log event.
-
#match=(match : String)
The grok pattern to match against the log event.
-
#source : String | Nil
The path to the field in the log event that you want to parse.
-
#source=(source : String | Nil)
The path to the field in the log event that you want to parse.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The grok pattern to match against the log event. For a list of supported grok patterns, see Supported grok patterns.
The grok pattern to match against the log event. For a list of supported grok patterns, see Supported grok patterns.
The path to the field in the log event that you want to parse. If you omit this value, the whole log message is parsed.
The path to the field in the log event that you want to parse. If you omit this value, the whole log message is parsed.