Configuring expiry time for log anomaly alerts
By default, alerts that are generated by a log anomaly expire in six hours (21,600 seconds). You can modify this value.
- Access the IBM Cloud Pak Administration panel by following the instructions at UI console.
- In the main navigation menu, click Workloads > Deployments.
- Search by name, and type log-anomaly in the field. The aimanager-aio-log-anomaly-detector deployment is listed in the table.
- Click aimanager-aio-log-anomaly-detector to visualize deployment details.
- Click the Environments tab. A list of environment variables is displayed.
- From the list, click Add more to add another environment variable.
- Name the environment variable EXPIRY_SECONDS.
- Set the value of the EXPIRY_SECONDS environment variable in seconds. For example, if you want to increase the expiry time to 24 hours, which is 86,400 seconds, set the value to
86400. - Click Save to save the changes. This action triggers a restart of the aimanager-aio-log-anomaly-detector pod, which takes a few minutes.
After the pod restarts, the new expiry time applies to any alerts that are generated by a log anomaly.