The Drupal request log reports information that can be very valuable in identifying and resolving performance issues on your site. The log is located at
/var/log/sites/[site].[env]/logs/[server]/drupal-requests.log. You can stream the Drupal request log in real time or download the Drupal request log on the Acquia Cloud interface Logs page for an environment. See About Acquia Cloud logs and Streaming log entries in real time.
Log entries on the Drupal request log are written at the end of the request and look like this:
[21/Apr/2016:21:50:20 +0000] mysite.devcloud.acquia-sites.com GET /info.php query= uid=0 php_pid=5 php_time=0.000 queue_wait=0.000 request_id="abcdef123456"
A log entry includes the following:
- site domain
- HTTP request method
- URL requested
uid- The Drupal uid that made the request (more specifically, the global
$user->uidwhen the request completes).
php_pid- The Unix
processidthat ran the request.
php_time- The time spent in PHP processing the request, in milliseconds.
queue_wait- The time this PHP request spent waiting for a PHP process to execute it, in seconds. When requests are being queued for a long time, it indicates that there are not enough PHP processes available for the application. Currently, digits after the decimal point are not significant and should be ignored.
request_id- An HTTP request ID assigned by Acquia Cloud. See Using HTTP request IDs for details.