Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Drupal 11.4.6 Update released for Drupal core (11.4.6)! Release: Drupal 10.6.16 Update released for Drupal core (10.6.16)! Release: Drupal 12.0.0-alpha1 First alpha version released for Drupal core (12.0.0-alpha1). Release: Website Feedback 1.2.1 Minor update available for module website_feedback (1.2.1). Release: Field Group Markup 1.0.5 Minor update available for module field_group_markup (1.0.5). Release: Website Feedback 1.2.0 Minor update available for module website_feedback (1.2.0). Release: User Registration Link Pop Up 1.2.5 Minor update available for module url_popup (1.2.5). Release: User Registration Link Pop Up 1.2.4 Minor update available for module url_popup (1.2.4). Usage Milestone: Menu Condition Module menu_condition crossed 1,000 active installs. Module Revived: EzContent API - Enhanced De-coupled CMS Experience 2.3.9 Module ezcontent_api updated after 15 months of inactivity (2.3.9).

Varnish Log Viewer

No security coverage Drupal 10–11

Part of the Varnish ecosystem · 4 projects

View on drupal.org

This module allows you to view and analyze Varnish cache logs directly within Drupal. You can filter requests, see error logs, and monitor cache hit rates. It also includes Drush commands for further log management and statistics.

Introduction

This module help with viewing and analyzing Varnish cache logs directly in Drupal. It monitors cache hit rates, filter requests by URL/status/cache status, and troubleshoot performance issues. It includes Drush commands for Acquia Cloud and restricted environments.

Features

  • Log Viewer: Browse recent Varnish access logs at /admin/reports/varnish-logs
  • Filtering: Filter by URL pattern, HTTP status code (200, 404, 500, etc.), and cache status (HIT/MISS/PASS)
  • Error Logs: Dedicated view for 4xx/5xx error responses
  • Statistics Dashboard: Cache hit/miss rates and request statistics
  • Drush Commands:
    • drush varnish:sync-logs: Sync logs to readable cache file
    • drush varnish:stats: Display cache statistics
    • drush varnish:tail: Real-time log tailing with filters
  • Acquia Cloud Support: Handles Acquia's extended log format

Post-Installation

  1. Enable the module with drush en varnish_log_viewer
  2. Configure the log file path at /admin/config/system/varnish-log-viewer
  3. If PHP cannot read logs directly (common on managed hosting), run drush varnish:sync-logs
  4. View logs at /admin/reports/varnish-logs

Additional Requirements

  • PHP 8.1 or higher
  • Drupal 10 or 11
  • Drush 12+ (for CLI commands)
  • Access to Varnish log files (varnishncsa format)

Recommended modules/libraries

Similar projects

  • Syslog
    Core logging to system log
  • DBLog
    Core database logging

Supporting this Module

  • Report issues in the issue queue
  • Submit patches or merge requests
  • Contribute documentation improvements

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
1
Tracked since
Jul 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Jul 20, 2026