---
title: "Analyzing the Drupal request log"
date: "2024-02-14T06:18:38+00:00"
summary: "Discover how to analyze Drupal request logs for performance optimization. Learn to interpret key metrics like PHP processing time and queue wait, and troubleshoot issues effectively."
image:
type: "page"
url: "/acquia-cloud-platform/analyzing-drupal-request-log"
id: "caafc7ed-7cdc-4c0d-94b5-53e27652d66c"
---

The Drupal request log reports information that can be 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 Cloud Platform interface **Logs** page for an environment. See [About Cloud Platform logging](/acquia-cloud-platform/monitor-apps/logs) and [Streaming log entries in real time](/acquia-cloud-platform/monitor-apps/logstream).

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:

*   date
*   site domain
*   HTTP request method
*   URL requested
*   `uid` - The Drupal `uid` that made the request (more specifically, the global `$user->uid` when the request completes).
*   `php_pid` - The Unix `processid` that ran the request.
*   `php_time` - The time spent in PHP processing the request, in seconds.
*   `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 Cloud Platform. See [Using HTTP request IDs](/acquia-cloud-platform/develop-apps/drupal-apps/requestid) for details.

Note

A Drush command does not have an associated web request. Drupal request log entries corresponding to Drush commands do not have a `request_id` column.

Related topics
--------------

*   [About Cloud Platform logging](/acquia-cloud-platform/monitor-apps/logs)
*   [Troubleshooting PHP timeouts](/acquia-cloud-platform/performance/php-timeouts)
*   [Searching the error logs to troubleshoot problems](/acquia-cloud-platform/help/92891-searching-error-logs-troubleshoot-problems "Searching the error logs to troubleshoot problems")