interface ParseKeyValueProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.CfnTransformer.ParseKeyValueProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslogs#CfnTransformer_ParseKeyValueProperty |
![]() | software.amazon.awscdk.services.logs.CfnTransformer.ParseKeyValueProperty |
![]() | aws_cdk.aws_logs.CfnTransformer.ParseKeyValueProperty |
![]() | aws-cdk-lib » aws_logs » CfnTransformer » ParseKeyValueProperty |
This processor parses a specified field in the original log event into key-value pairs.
For more information about this processor including examples, see parseKeyValue 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 { aws_logs as logs } from 'aws-cdk-lib';
const parseKeyValueProperty: logs.CfnTransformer.ParseKeyValueProperty = {
destination: 'destination',
fieldDelimiter: 'fieldDelimiter',
keyPrefix: 'keyPrefix',
keyValueDelimiter: 'keyValueDelimiter',
nonMatchValue: 'nonMatchValue',
overwriteIfExists: false,
source: 'source',
};
Properties
Name | Type | Description |
---|---|---|
destination? | string | The destination field to put the extracted key-value pairs into. |
field | string | The field delimiter string that is used between key-value pairs in the original log events. |
key | string | If you want to add a prefix to all transformed keys, specify it here. |
key | string | The delimiter string to use between the key and value in each pair in the transformed log event. |
non | string | A value to insert into the value field in the result, when a key-value pair is not successfully split. |
overwrite | boolean | IResolvable | Specifies whether to overwrite the value if the destination key already exists. |
source? | string | Path to the field in the log event that will be parsed. |
destination?
Type:
string
(optional)
The destination field to put the extracted key-value pairs into.
fieldDelimiter?
Type:
string
(optional)
The field delimiter string that is used between key-value pairs in the original log events.
If you omit this, the ampersand &
character is used.
keyPrefix?
Type:
string
(optional)
If you want to add a prefix to all transformed keys, specify it here.
keyValueDelimiter?
Type:
string
(optional)
The delimiter string to use between the key and value in each pair in the transformed log event.
If you omit this, the equal =
character is used.
nonMatchValue?
Type:
string
(optional)
A value to insert into the value field in the result, when a key-value pair is not successfully split.
overwriteIfExists?
Type:
boolean |
IResolvable
(optional)
Specifies whether to overwrite the value if the destination key already exists.
If you omit this, the default is false
.
source?
Type:
string
(optional)
Path to the field in the log event that will be parsed.
Use dot notation to access child fields. For example, store.book