You can query the operation logs of an instance in the console to check its running
status.
Prerequisites
A replica set instance with more than three nodes or a sharded cluster instance is
used.
Precautions
The retention period for slow logs is 72 hours.
Procedure
- Log on to the ApsaraDB for MongoDB console.
- In the upper-left corner of the page, select the resource group and the region of
the target instance.
- In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances based on the instance type.
- Find the target instance and click its ID.
- In the left-side navigation pane, choose .
- Perform the following steps based on instance types:
- Replica set instances: You can select the node role and time range to query the corresponding
operation logs.

- Sharded cluster instances: You can query operation logs of Mongos or shard nodes.
Note Mongos nodes have IDs prefixed with s-. Shard nodes have IDs prefixed with d-.
- Query the operation logs of a Mongos node.
You can select the Mongos node ID and time range to query the operation logs.

- Query the operation logs of a shard node.
You can select the shard node ID, role, and time range to query the operation logs.
