All Products
Document Center

Database Autonomy Service:Slow query logs

Last Updated:Apr 26, 2023

Database Autonomy Service (DAS) provides the log analysis feature for slow queries. You can use this feature to view the trend, statistics, and details of slow queries to identify, analyze, and track slow query logs. This helps you create indexes and improve the resource utilization of your instance.


A replica set instance or a sharded cluster instance is created in MongoDB.

Background information

The slow logs are generated by the database kernel. The parameters and thresholds vary based on the database engine. For more information, see the corresponding official documentation.


  1. Log on to the DAS console.
  2. In the left-side navigation pane, click Instance Monitoring.
  3. On the page that appears, find the database instance that you want to manage and click the instance ID. The instance details page appears.
  4. In the left-side navigation pane, choose Request Analysis > Slow Logs.

  5. On the Slow Log Analysis tab, specify a time range and view the trends, statistics, and details of the slow queries within the time range.

    Note When you specify the time range, the end time must be later than the start time, and the interval between the start time and the end time cannot exceed 24 hours. You can query slow query logs within the latest month.
    • You can click a time point in the trend chart and view the statistics and details of the slow queries at the time point.


      If the content of an SQL statement is not completely displayed due to length, you can move the pointer over the SQL statement and view the complete content.

    • On the Nodes tab, view the number of slow queries on each node.

    • You can click Export Slow Log to download slow query logs.

    • On the Slow Log Statistics tab, click Sample in the Actions column corresponding to the SQL template to view the slow query log sample of the SQL template.