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.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{
"Destination" : String
,
"Source" : String
}
YAML
Destination: String
Source: String
Properties
Destination
-
The location to put the parsed key value pair into. If you omit this parameter, it is placed under the root node.
Required: No
Type: String
Pattern:
^.*[a-zA-Z0-9]+.*$
Maximum:
128
Update requires: No interruption
Source
-
Path to the field in the log event that will be parsed. Use dot notation to access child fields. For example,
store.book
Required: No
Type: String
Minimum:
1
Maximum:
128
Update requires: No interruption