ParseJSONProperty
- class aws_cdk.aws_logs.ParseJSONProperty(*, destination=None, source=None)
Bases:
object
This processor parses log events that are in JSON format.
It can extract JSON key-value pairs and place them under a destination that you specify. Additionally, because you must have at least one parse-type processor in a transformer, you can use ParseJSON as that processor for JSON-format logs, so that you can also apply other processors, such as mutate processors, to these logs. For more information about this processor including examples, see parseJSON in the CloudWatch Logs User Guide.
- Parameters:
destination (
Optional
[str
]) – The location to put the parsed key value pair into. Default: - Placed under root of log eventsource (
Optional
[str
]) – Path to the field in the log event that will be parsed. Use dot notation to access child fields. 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 parse_jSONProperty = logs.ParseJSONProperty( destination="destination", source="source" )
Attributes
- destination
The location to put the parsed key value pair into.
- Default:
Placed under root of log event