You can download your website's MySQL slow query logs from the 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, complete the following steps:
- Sign in to Acquia.
- Go to the Cloud > Logs page for your website, and then select the environment for which you want to download the log.
- Click Download logs.
- In the MySQL slow query log line for your environment, 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:
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.
For another approach to identifying resource consumption issues and bottlenecks, consider using New Relic, which is available to all Acquia subscribers at no additional cost. Read more about using New Relic.