CloudWatchLogs / Client / update_log_anomaly_detector

update_log_anomaly_detector#

CloudWatchLogs.Client.update_log_anomaly_detector(**kwargs)#

Updates an existing log anomaly detector.

See also: AWS API Documentation

Request Syntax

response = client.update_log_anomaly_detector(
    anomalyDetectorArn='string',
    evaluationFrequency='ONE_MIN'|'FIVE_MIN'|'TEN_MIN'|'FIFTEEN_MIN'|'THIRTY_MIN'|'ONE_HOUR',
    filterPattern='string',
    anomalyVisibilityTime=123,
    enabled=True|False
)
Parameters:
  • anomalyDetectorArn (string) –

    [REQUIRED]

    The ARN of the anomaly detector that you want to update.

  • evaluationFrequency (string) – Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting evaluationFrequency to FIFTEEN_MIN might be appropriate.

  • filterPattern (string) – A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.

  • anomalyVisibilityTime (integer) – The number of days to use as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal. Therefore, if you do not correct the cause of an anomaly during this time, it will be considered normal going forward and will not be detected.

  • enabled (boolean) –

    [REQUIRED]

    Use this parameter to pause or restart the anomaly detector.

Returns:

None

Exceptions