On this page

Viewing Slow Query Logs of a DB Instance

Updated on 2025-03-19 GMT+08:00

Scenarios

Slow Query Log displays a chart of SQL statements that are taking too long to execute and allows you to sort slow SQL statements by multiple dimensions, such as by user, host, or SQL template. It helps you quickly identify bottlenecks and improve instance performance.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  3. On the Instances page, click the DB instance name.
  4. In the navigation pane, choose DBA Assistant > Historical Diagnosis.
  5. Click the Slow Query Log tab.
  6. You can view slow queries over time and you can see the slow log archive history for the last 1 hour, last 3 hours, last 12 hours, or a custom time period (spanning no more than one day).
  7. View slow query log details and template statistics.

    • To export slow query log information, click Export.
    • To view log export history, click View Export List.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback