class CfnLogAnomalyDetectorPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Logs.Mixins.CfnLogAnomalyDetectorPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslogs/mixins#CfnLogAnomalyDetectorPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.logs.mixins.CfnLogAnomalyDetectorPropsMixin |
Python | aws_cdk.mixins_preview.aws_logs.mixins.CfnLogAnomalyDetectorPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_logs » mixins » CfnLogAnomalyDetectorPropsMixin |
Implements
IMixin
Extends
Mixin
Creates or updates an anomaly detector that regularly scans one or more log groups and look for patterns and anomalies in the logs.
An anomaly detector can help surface issues by automatically discovering anomalies in your log event traffic. An anomaly detector uses machine learning algorithms to scan log events and find patterns . A pattern is a shared text structure that recurs among your log fields. Patterns provide a useful tool for analyzing large sets of logs because a large number of log events can often be compressed into a few patterns.
The anomaly detector uses pattern recognition to find anomalies , which are unusual log events. It compares current log events and patterns with trained baselines.
Fields within a pattern are called tokens . Fields that vary within a pattern, such as a request ID or timestamp, are referred to as dynamic tokens and represented by <*> .
For more information see Log anomaly detection .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as logs_mixins } from '@aws-cdk/mixins-preview/aws-logs';
const cfnLogAnomalyDetectorPropsMixin = new logs_mixins.CfnLogAnomalyDetectorPropsMixin({
accountId: 'accountId',
anomalyVisibilityTime: 123,
detectorName: 'detectorName',
evaluationFrequency: 'evaluationFrequency',
filterPattern: 'filterPattern',
kmsKeyId: 'kmsKeyId',
logGroupArnList: ['logGroupArnList'],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnLogAnomalyDetectorPropsMixin(props: CfnLogAnomalyDetectorMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Log Anomaly Detector Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Logs::LogAnomalyDetector.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript