Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

request_logger

10 sites Security covered
View on drupal.org

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

Activity

Total releases
4
First release
Oct 2025
Latest release
1 month ago
Release cadence
52 days
Stability
0% stable

Release Timeline

Releases

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