This topic describes how to view audit logs on ApsaraDB for MongoDB.
Prerequisites
View audit logs
Log on to the ApsaraDB for MongoDB console.
In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances based on the instance type.
In the upper-left corner of the page, select the resource group and region to which the instance belongs.
Click the ID of an instance, or click in the Actions column corresponding to the instance and select Manage.
In the left-side navigation pane of the instance details page, choose .
On the Mongo audit log center page, query the details of audit logs. By default, the audit logs of 15 minutes (relative) are displayed.
You can click Refresh in the upper-right corner of the Mongo audit log center page to set the refresh frequency of audit logs.
Once
Specifies to immediately refresh audit logs.
Auto Refresh
Specifies to refresh audit logs every 15 seconds, 60 seconds, 5 minutes, or 15 minutes.
NoteIf you do not want to use the auto-refresh interval specified by this parameter, choose
to clear the current parameter setting, and then reset this parameter.
FAQ
Why do I view only 2,000 audit log entries?
The Mongo audit log center page of the ApsaraDB for MongoDB 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.