Skip to content

/AWS1/CL_CWL=>UPDATELOGANOMALYDETECTOR()

About UpdateLogAnomalyDetector

Updates an existing log anomaly detector.

Method Signature

IMPORTING

Required arguments:

IV_ANOMALYDETECTORARN TYPE /AWS1/CWLANOMALYDETECTORARN /AWS1/CWLANOMALYDETECTORARN

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

IV_ENABLED TYPE /AWS1/CWLBOOLEAN /AWS1/CWLBOOLEAN

Use this parameter to pause or restart the anomaly detector.

Optional arguments:

IV_EVALUATIONFREQUENCY TYPE /AWS1/CWLEVALUATIONFREQUENCY /AWS1/CWLEVALUATIONFREQUENCY

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.

IV_FILTERPATTERN TYPE /AWS1/CWLFILTERPATTERN /AWS1/CWLFILTERPATTERN

filterPattern

IV_ANOMALYVISIBILITYTIME TYPE /AWS1/CWLANOMALYVISIBILITYTIME /AWS1/CWLANOMALYVISIBILITYTIME

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.