Class: Aws::CloudWatchLogs::Types::ParseJSON
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchLogs::Types::ParseJSON
- Defined in:
- gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb
Overview
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.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#destination ⇒ String
The location to put the parsed key value pair into.
-
#source ⇒ String
Path to the field in the log event that will be parsed.
Instance Attribute Details
#destination ⇒ String
The location to put the parsed key value pair into. If you omit this parameter, it is placed under the root node.
6759 6760 6761 6762 6763 6764 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 6759 class ParseJSON < Struct.new( :source, :destination) SENSITIVE = [] include Aws::Structure end |
#source ⇒ String
Path to the field in the log event that will be parsed. Use dot
notation to access child fields. For example, store.book
6759 6760 6761 6762 6763 6764 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 6759 class ParseJSON < Struct.new( :source, :destination) SENSITIVE = [] include Aws::Structure end |