AWS SDK Version 3 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 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.

Inheritance Hierarchy

System.Object
  Amazon.CloudWatchLogs.Model.Grok

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

Syntax

C#
public class Grok

The Grok type exposes the following members

Constructors

NameDescription
Public Method Grok()

Properties

NameTypeDescription
Public Property Match System.String

Gets and sets the property Match.

The grok pattern to match against the log event. For a list of supported grok patterns, see Supported grok patterns.

Public Property Source System.String

Gets and sets the property Source.

The path to the field in the log event that you want to parse. If you omit this value, the whole log message is parsed.

Version Information

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

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5