Scenario
You can click the Slow Query Log tab in Instance Management to view the slow query log information of the instance. In this tab, information can be filtered by node name, operation type, and time.
Procedure
Log in to the DDS management console.
Click the Instance Management menu in Management Center to display the list of instances.
Click an instance name to go to the Basic Information page of this instance.
The Slow Query Log tab is displayed to the right of the Basic Information page. Click the tab to go to the slow query log details page.
Slow query log that can be viewed for different instance types:
For a single-node instance, you can view the slow query log at the node level.
For a replica set instance, you can view the slow query log of all sub-node types under the replica set instance.
For a cluster instance, you can view the slow query log by mongos sub-nodes, sharding_shard sub-nodes, and sharding_configsvr sub-nodes.
You can select a node from the node name drop-down list to view the slow query log of the node.
You can also click the slow statement type drop-down list or the date selection box to select a different type or time range to view the slow query log.
You can click Reset to clear the filtering conditions.