Interface GrokProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GrokProperty.Jsii$Proxy
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-07-24T11:33:17.280Z")
@Stability(Stable)
public interface GrokProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.logs.*; GrokProperty grokProperty = GrokProperty.builder() .match("match") // the properties below are optional .source("source") .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forGrokProperty
static final class
An implementation forGrokProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMatch
The grok pattern to match against the log event.For a list of supported grok patterns, see Supported grok patterns in the CloudWatch Logs User Guide.
-
getSource
The path to the field in the log event that you want to parse.Default: '@message'
-
builder
- Returns:
- a
GrokProperty.Builder
ofGrokProperty
-