You can subscribe to audit log reports of ApsaraDB for MongoDB through emails or the DingTalk ChatBot. This allows you to retrieve informed information about ApsaraDB for MongoDB regularly.

Prerequisites

You have activated the new version of Log Service. For more information, see Enable audit log service (new version).

Procedure

  1. Log on to the ApsaraDB for MongoDB console.
  2. In the upper-left corner of the page, select the region of the target instance.
  3. In the left-side navigation pane, clickReplica Set Instances or Sharding Instances based on the instance type.
  4. Find the target instance and click its ID.
  5. In the left-side navigation pane of the Instance page, choose Data Security > Audit Log.
  6. On the Mongo audit log center page, click Subscribe in the upper-right corner.
    Click Subscribe
  7. On the Subscription Configuration page, complete the settings, and click Next at the bottom of the page.
    The following table describes the parameters on the subscription configuration page.
    Parameter Description
    Subscription Name The description of the subscription. You can customize the description.
    Frequency Specify the frequency at which ApsaraDB for Redis sends the reports.
    Add Watermark After you enable this feature, the images in the reports are watermarked with the email address or the WebHook URL.
  8. On the Notifications page, click the drop-down list on the right and select a notification method.
    Add a notification method
    Note The available notification methods are Email and WebHook-DingTalk Bot. You can choose one or both of them.
  9. Specify the Recipients of the Email or enter the Request URL of the WebHook-DingTalk Bot, and then click Submit at the bottom of the page.