You can view the operational logs of an instance in the ApsaraDB for MongoDB console to check its running status.
Prerequisites
The instance must be a replica set instance or a sharded cluster instance.
Standalone instances are listed under replica set instances. However, you cannot view operational logs for standalone instances.
Usage notes
You can view operational logs from the last 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 specific region.
Procedure
Log on to the ApsaraDB for MongoDB console.
In the navigation pane on the left, click Replica Set Instances or Sharded Cluster Instances, depending on the instance type.
In the upper-left corner of the page, select the resource group and region where the instance is located.
Click the instance ID, or click Manage in the Actions column for the instance.
On the instance details page, in the navigation pane on the left, click .
The next steps vary depending on the instance type.
Replica set instance
Select a node role and a time range to query the operational logs.
Sharded cluster instance
Query the operational logs of a Mongos or shard node.
NoteThe ID of a Mongos node is prefixed with
s-, and the ID of a shard node is prefixed withd-.Query the operational logs of a Mongos node
Select a Mongos node ID and a time range.
Query the operational logs of a shard node
Select a shard node ID, a node role, and a time range.
NoteClick the
icon in the upper-right corner to download the currently displayed operation logs.