This project is not covered by Drupal’s security advisory policy.
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 filedrush varnish:stats: Display cache statisticsdrush varnish:tail: Real-time log tailing with filters
- Acquia Cloud Support: Handles Acquia's extended log format
Post-Installation
- Enable the module with
drush en varnish_log_viewer - Configure the log file path at /admin/config/system/varnish-log-viewer
- If PHP cannot read logs directly (common on managed hosting), run
drush varnish:sync-logs - 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
- Purge
Cache invalidation framework - Varnish Purge
Varnish cache tag invalidation
Similar projects
Supporting this Module
- Report issues in the issue queue
- Submit patches or merge requests
- Contribute documentation improvements
Supporting organizations:
Project information
- Project categories: Automation
- Ecosystem: Varnish, Core logs
- Created by kt2026 on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
1.0.0
released 20 July 2026
Works with Drupal: ^10 || ^11
View real-time Varnish cache logs and statistics in the Drupal admin. Filter by URL, status code, or cache status. Includes Drush commands for log syncing and Acquia Cloud support.
Install: