Downloading a slow query log

You can download your website's MySQL slow query logs from the Acquia Cloud interface Cloud > Logs page. By analyzing the slow query log, you can identify database-related issues that may be impairing your website's performance. Slow queries are database queries that took longer than one second.

To download the MySQL slow query log for an environment, complete the following steps:

  1. Sign in to the Acquia Cloud interface and select your application and environment.
  2. In the left menu, click Logs, and then click Download Logs.

    Click Download Logs

  3. In the MySQL slow query log line, click Download.

Acquia Cloud generates the slow query log. The slow query log includes data generated since the last time the MySQL log was rotated, which occurs daily. It should begin downloading as soon as it is generated, with a file name of the form: slow_query_log_[sitename]_[timestamp:1349352001].sql

A slow query log is generated on demand; unlike other logs on the Acquia platform, slow query logs are not retained and can be accessed only by using the Download button.

You can examine the slow query log using tools like Percona Tools pt-query-digest and the MySQL EXPLAIN statement. For more information, see Tools for parsing a slow query log.

For another approach to identifying resource consumption issues and bottlenecks, consider using an application monitoring tool, such as New Relic.

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Contact supportStill need assistance? Contact Acquia Support