interface ParseToOCSFProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.CfnTransformer.ParseToOCSFProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslogs#CfnTransformer_ParseToOCSFProperty |
![]() | software.amazon.awscdk.services.logs.CfnTransformer.ParseToOCSFProperty |
![]() | aws_cdk.aws_logs.CfnTransformer.ParseToOCSFProperty |
![]() | aws-cdk-lib » aws_logs » CfnTransformer » ParseToOCSFProperty |
This processor converts logs into Open Cybersecurity Schema Framework (OCSF) events.
For more information about this processor including examples, see parseToOSCF 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 parseToOCSFProperty: logs.CfnTransformer.ParseToOCSFProperty = {
eventSource: 'eventSource',
ocsfVersion: 'ocsfVersion',
// the properties below are optional
source: 'source',
};
Properties
Name | Type | Description |
---|---|---|
event | string | Specify the service or process that produces the log events that will be converted with this processor. |
ocsf | string | Specify which version of the OCSF schema to use for the transformed log events. |
source? | string | The path to the field in the log event that you want to parse. |
eventSource
Type:
string
Specify the service or process that produces the log events that will be converted with this processor.
ocsfVersion
Type:
string
Specify which version of the OCSF schema to use for the transformed log events.
source?
Type:
string
(optional)
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.