Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Request Logger

22 sites Security covered
View on drupal.org

This module logs detailed information about every HTTP request and its response, including request method, path, headers, response duration, size, and memory usage. This data is valuable for monitoring site performance and analyzing user activity.

Logs every HTTP Request to the website with the response data details to the standard logger, including responses returned directly from cache. Stores in the log entry useful metadata about the request (request type (GET/POST), path, query string, headers) and the response (response generation duration in milliseconds, size, memory usage, cache hit/miss, headers, etc).

This data is very useful to monitor the site performance, cache hit rate monitoring and build other site analytics reports.

Usage

Just install the module, and it works out of the box, adding a new log entry for each request to the website.

On the settings page /admin/config/development/request_logger (Home » Administration » Configuration » Development » Request Logger) you can choose what exact data you want to store in the logs.

Extended structured logs

By default, this module works well with the default Drupal loggers - Syslog and DBlog and stores the simple information in the log message.

But you can extend the log entry data using the Logger module to store all required custom fields and metadata together with the log entry. This approach allows aggregate, filter and sort logs by any custom field (eg, sort requests by duration or memory usage), build metrics, reports, and charts directly from logs using any log visualizing tool.

A submodule "Request Logger Reports" provides displaying logged requests and responses directly in the Drupal Admin Panel with the ability to filter by any custom field using the Logger DB module, and even build useful charts with the help of the Charts module.

Log entry example

{
  "timestamp_float": 1759500536.654993,
  "message": "GET /node - query: page=2, response: duration: 0.227 sec, memory: 3.518 MB, page cache: HIT",
  "channel": "request_logger",
  "severity": 6,
  "uid": 0,
  "metadata": {
    "request": {
      "method": "GET",
      "path": "/mode",
      "query": "page=2",
      "uuid": "a5e06180-6348-4dcd-920f-91386a34dc21"
    },
    "response": {
      "code": 200,
      "size": 42749,
      "duration": 0.227,
      "memory_usage": 3688552,
      "memory_usage_peak": 5021640,
      "page_cache": "HIT"
    }
  }
}

Previous version (2.x)

The previous approach in the 2.x branch extends and overrides the core DB Logger service to add HTTP request data to the logs. Especially useful for decoupled sites, where you need to see what POST requests caused PHP exceptions or other 5xx errors.

Usage:

  1. Install and enable the module.
  2. All log entries with a severity of ERROR or higher (i.e. RFC 5424 numerical code lower than or equal to 3) will include extra information about the HTTP request in the DB logs at `/admin/reports/dblog`.

Fund the project at: www.refstudycentre.com/contact#donations

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Oct 2025
Latest release
5 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
3.0.0-alpha3 Pre-release 11 Mar 13, 2026
3.0.0-alpha2 Pre-release 11 Oct 17, 2025
3.0.0-alpha1 Pre-release 11 Oct 7, 2025
3.x-dev Dev 11 Oct 7, 2025