All Products
Search
Document Center

ApsaraDB for MongoDB:Download audit logs

Last Updated:Mar 28, 2026

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

  1. 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.

  2. In the left-side navigation pane, choose Data Security > Audit Logs.

  3. 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.

MethodHow to apply
Filter by keyword, operation type, or client IP addressSee View audit logs
Filter by time rangeClick 更多 in the upper-right corner of the chart or Audit Log Details section, then select Select Time Range

Download formats

OptionOutput formatView with
Download Chart Data.csv fileExcel or similar spreadsheet tools
Download Chart.png fileTools such as Paint

Both options download the file through your web browser to your computer.