You can view the operational logs of an instance in the ApsaraDB for MongoDB console to obtain information about the status of the instance.
Prerequisites
The instance is a replica set instance or a sharded cluster instance.
You can find standalone instances in the replica set instance list, but you cannot view the operational logs of standalone instances.
Usage notes
The retention period of operational logs is seven days.
The log management feature is unavailable in some regions. You can log on to the ApsaraDB for MongoDB console to check whether the feature is supported in a specified region.
Procedure
Log on to the ApsaraDB for MongoDB console.
In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances.
In the upper-left corner of the page that appears, select the resource group and region to which the desired instance belongs.
Click the ID of the instance that you want to manage or click Manage in the Actions column.
In the left-side navigation pane of the instance details page, choose .
Perform operations to view operational logs based on the instance architecture.
Replica set instances
Specify the node role and time range to view operational logs.
Sharded cluster instances
View the operational logs of a mongos or shard node.
NoteA mongos node has an ID prefixed with
s-
. A shard node has an ID prefixed withd-
.View the operational logs of a mongos node
Specify the mongos node ID and time range to view the operational logs.
View the operational logs of a shard node
Specify the shard node ID, role, and time range to view operational logs.
NoteClick Export to download the operational logs displayed on the current page to your on-premises computer.