You can view audit logs within a specific period of time and filter audit logs that match specific conditions.
Prerequisites
Background information
Audit logs provide a detailed insight into the status of your ApsaraDB for Redis instance. You can use audit logs to view request records so that you can check records of modify and delete operations and find the cause of sudden increases in database resource consumption.
View audit logs
- Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance is deployed. Then, find the instance and click its ID.
- In the left-side navigation pane, choose .
- On the Audit Log page, check the audit log details of the instance.
Filter the audit logs of an instance
ApsaraDB for Redis allows you to view the audit logs that meet specified filter conditions.
View the audit logs of an instance over a specified time range
You can use the time picker to specify a time range to query.
Related API operations
Operation | Description |
---|---|
ModifyAuditLogConfig | Enables or disables the audit log feature and specifies a retention period for audit logs. |
DescribeAuditLogConfig | Queries the audit log configurations of an ApsaraDB for Redis instance. The configurations include whether the audit log feature is enabled and the retention period of audit logs. |
DescribeAuditRecords | Queries the audit logs of an ApsaraDB for Redis instance. |
FAQ
- Can I view more than 2,000 audit log entries?
The Audit Log page in the ApsaraDB for Redis console displays a maximum of 2,000 audit log entries. To view more audit log entries, log on to the Log Service console. For more information, see Query and analyze logs.