Interface CfnTransformerPropsMixin.IGrokProperty
This processor uses pattern matching to parse and structure unstructured data.
Namespace: Amazon.CDK.Mixins.Preview.AWS.Logs.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public interface CfnTransformerPropsMixin.IGrokProperty
Syntax (vb)
Public Interface CfnTransformerPropsMixin.IGrokProperty
Remarks
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 .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.Logs.Mixins;
var grokProperty = new GrokProperty {
Match = "match",
Source = "source"
};
Synopsis
Properties
| Match | The grok pattern to match against the log event. |
| Source | The path to the field in the log event that you want to parse. |
Properties
Match
The grok pattern to match against the log event.
string? Match { get; }
Property Value
Remarks
For a list of supported grok patterns, see Supported grok patterns .
Source
The path to the field in the log event that you want to parse.
string? Source { get; }
Property Value
Remarks
If you omit this value, the whole log message is parsed.