class Amazonite::CloudWatchLogs::Grok

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

Defined in:

cloudwatch_logs/grok.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(match : String, source : String | Nil = nil) #

[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 hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def match : String #

The grok pattern to match against the log event. For a list of supported grok patterns, see Supported grok patterns.


[View source]
def match=(match : String) #

The grok pattern to match against the log event. For a list of supported grok patterns, see Supported grok patterns.


[View source]
def source : String | Nil #

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.


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

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.


[View source]
def validate! : Nil #

[View source]