You can push Message Service (MNS) logs to Object Storage Service (OSS) and view operations logs in the OSS console. You can diagnose exceptions based on MNS logs. This article describes how to push logs to OSS.

Prerequisites

  • Activate OSS
  • A bucket is created. For more information, see Create buckets.
    Note Only a bucket that resides in the same region as the queue or topic can be used to store logs. Therefore, when you create a bucket, you must select the region where the queue or topic reside.

Procedure

  1. Log on to the MNS console.
  2. In the left-side navigation pane, click Logging.
  3. In the top navigation bar, select a region.
  4. In the Select Target step of the Logging page, select OSS.
  5. In the Configure Target step, specify the Bucket Name parameter, and click Enable.

Result

The bucket appears on the Logging page.