You can subscribe to audit log reports of a Tair (Redis OSS-compatible) instance by email or DingTalk chatbot. This allows you to periodically receive updates on the status of the instance.
Prerequisites
The audit log feature is enabled for the instance. For more information, see Enable the audit log feature.
Procedure
Log on to the console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
In the left-side navigation pane, choose .
On the Audit Logs page, choose in the upper-right corner.
In the Create Subscription panel, configure the parameters and click Next in the lower part of the page.
The following table describes the parameters.
Parameter
Description
Subscription Name
The subscription name. You can specify this parameter based on your business needs.
Frequency
The frequency at which to send the audit log reports.
Global Time
The time range during which the audit logs to be sent are generated. Valid values: Default and Custom. If you set this parameter to Custom, you must configure one of the following parameters:
Relative: the time range to the current time. For example, if the current time is 19:20:31 and 1 Hour is selected as the relative time range, Tair sends the audit logs that are generated from 18:20:31 to 19:20:31.
Time Frame: the time range to the current time on the hour. For example, if the current time is 19:20:31 and 1 Hour is selected as the time frame, Tair sends the audit logs that are generated from 18:00:00 to 19:00:00.
Custom: a custom time range during which the audit logs to be sent are generated.
Add Watermark
Specifies whether to enable the watermark feature to add watermarks to the images in the audit log reports. The watermarks can be email addresses or webhook URLs.
Use SQL Enhancement
If the amount of log data is large, you can use the SQL enhancement feature provided by Simple Log Service. You can increase the amount of data that can be analyzed in a single query request by adding computing resources. For more information, see Enable Dedicated SQL.
In the Notification step, click the drop-down list on the right and select a notification method.
Valid values include Email and multiple webhook chatbots. You can select multiple notification methods.
NoteFor information about how to obtain webhook URLs, see DingTalk chatbot webhooks.
Specify the recipients of the notifications and click Submit in the lower part of the panel.