This topic describes how to modify the settings of the Audit Log Filter Setting feature for an ApsaraDB for MongoDB instance to adjust the types of operations that are audited in the instance.

Prerequisites

The new audit log feature is enabled. For more information, see Enable the new audit log feature.

Procedure

  1. Log on to the ApsaraDB for MongoDB console.
  2. In the upper-left corner of the page, select the resource group and the region of the target instance.
  3. In the left-side navigation pane, click Replica Set Instances, or Sharded Cluster Instances based on the instance type.
  4. Find the target instance and click its ID.
  5. In the left-side navigation pane, choose Data Security > Audit Logs.
  6. In the upper-left corner of the page, click Audit Log Filter Setting.
  7. In the Audit Log Filter Setting pane, select the types of operations that you want to audit, and click Submit.
    Note The audit log feature supports the following types of operations:
    • admin: O&M operations
    • slow: slow queries
    • query: query operations
    • insert: insert operations
    • update: update operations
    • delete: delete operations
    • command: protocol commands, such as the aggregate method