GrokProperty
- class aws_cdk.aws_logs.GrokProperty(*, match, source=None)
Bases:
object
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.
- Parameters:
match (
str
) – The grok pattern to match against the log event. For a list of supported grok patterns, see Supported grok patterns in the CloudWatch Logs User Guide.source (
Optional
[str
]) – The path to the field in the log event that you want to parse. Default: ‘@message’
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_logs as logs grok_property = logs.GrokProperty( match="match", # the properties below are optional source="source" )
Attributes
- match
The grok pattern to match against the log event.
For a list of supported grok patterns, see Supported grok patterns in the CloudWatch Logs User Guide.