aws logs create-log-anomaly-detector
Creates an anomaly detector that regularly scans one or more log groups and look for patterns and anomalies in the logs. AWS CLI reference
7 options Its page in the AWS CLI reference
Options
--anomaly-visibility-timeThe number of days to have visibility on an anomaly.--detector-nameA name for this anomaly detector.--evaluation-frequencySpecifies how often the anomaly detector is to run and look for anomalies.--filter-patternYou can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here.--kms-key-idOptionally assigns a KMS key to secure this anomaly detector and its findings.--log-group-arn-listAn array containing the ARN of the log group that this anomaly detector will watch.--tagsAn optional list of key-value pairs to associate with the resource.