AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Inheritance Hierarchy

System.Object
  Amazon.CloudWatchLogs.Model.ParseJSON

Namespace: Amazon.CloudWatchLogs.Model
Assembly: AWSSDK.CloudWatchLogs.dll
Version: 3.x.y.z

Syntax

C#
public class ParseJSON

The ParseJSON type exposes the following members

Constructors

NameDescription
Public Method ParseJSON()

Properties

NameTypeDescription
Public Property Destination System.String

Gets and sets the property Destination.

The location to put the parsed key value pair into. If you omit this parameter, it is placed under the root node.

Public Property Source System.String

Gets and sets the property Source.

Path to the field in the log event that will be parsed. Use dot notation to access child fields. For example, store.book

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer