• Document Database Service

  1. Help Center
  2. Document Database Service
  3. User Guide
  4. Monitoring
  5. Slow Query Log

Slow Query Log

Slow query logs record statements whose execution period exceeds the threshold specified by the slowms value (100 ms by default), allowing you identify and optimize slowly executed statements.


  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click Service List. Under Database, click Document Database Service.
  4. On the Instance Management page, locate the target DB instance on the Clusters tab or the Replica Sets tab and click its name.
  5. On the displayed page, click Slow Query Logs. Then, view the log details.

    • Log records of all shards of a cluster instance
    • Log records of all nodes of a replica set instance
    • Log records of a node in different time periods
    • Statements of the following level
      • All statement type
      • insert
      • query
      • update
      • remove
      • getmore
      • command