Download audit logs from an ApsaraDB for MongoDB instance to your computer for archiving, filtering, and analysis.
Prerequisites
Before you begin, ensure that you have:
Activated the free trial edition of audit logging for the instance before January 6, 2022
Starting from January 6, 2022, the pay-as-you-go official edition of the audit log feature launched in all regions, and new applications for the free trial edition ended. For details, see Notice: Official launch of the pay-as-you-go audit log feature and end of free trial applications.
Download audit logs
Go to the Replica Set Instances or Sharded Cluster Instances page. In the top navigation bar, select the region where the instance resides, then click the instance ID.
In the left-side navigation pane, choose Data Security > Audit Logs.
Download audit logs using one of the following methods: Download from a specific chart Click
in the upper-right corner of the chart, then select Download Chart Data or Download Chart. Download all audit logs Click
in the upper-right corner of the Audit Log Details section, then select Download Chart Data.
Filter log entries before downloading
To narrow down what you download, apply filters before clicking the download option.
| Method | How to apply |
|---|---|
| Filter by keyword, operation type, or client IP address | See View audit logs |
| Filter by time range | Click |
Download formats
| Option | Output format | View with |
|---|---|---|
| Download Chart Data | .csv file | Excel or similar spreadsheet tools |
| Download Chart | .png file | Tools such as Paint |
Both options download the file through your web browser to your computer.