Skip to content

Grok

Source code in docs_src/capo_cloudwatch_logs/types/grok.py
class Grok(TypedDict, closed=True):
    source: NotRequired["capo_cloudwatch_logs.types.source.Source"]
    """<p>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.</p>"""
    match: "capo_cloudwatch_logs.types.grok_match.GrokMatch"
    """<p>The grok pattern to match against the log event. For a list of supported grok patterns, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Configurable.html#CloudWatch-Logs-Transformation-Grok">Supported grok patterns</a>.</p>"""

match instance-attribute

match: GrokMatch

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

source instance-attribute

source: NotRequired[Source]

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.