Drupal is a registered trademark of Dries Buytaert
External Authentication Module externalauth crossed 100,000 active installs. Config Ignore Module config_ignore crossed 100,000 active installs. Emulsify Tools 2.1.2 Minor update available for module emulsify_tools (2.1.2). AI (Artificial Intelligence) 1.5.0-alpha2 New alpha version released for module ai (1.5.0-alpha2). Sitemap Module sitemap crossed 50,000 active installs. Color backport Module color crossed 50,000 active installs. Extra Paragraph Types (EPT): Micromodal 2.0.1 Minor update available for module ept_micromodal (2.0.1). Extra Paragraph Types (EPT): Timeline 2.0.1 Minor update available for module ept_timeline (2.0.1). Voting API Module votingapi crossed 1,000 active installs. Extra Paragraph Types (EPT): Images 2.0.0 Module ept_images updated after 10 months of inactivity (2.0.0).

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 (Summary) - First 200 chars shown in search

View and analyze Varnish cache logs directly in Drupal admin. Monitor cache hit rates, filter requests by URL/status/cache status, and troubleshoot performance issues. 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: `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

- [Purge](https://www.drupal.org/project/purge) - Cache invalidation framework
- [Varnish Purge](https://www.drupal.org/project/varnish_purge) - Varnish cache tag invalidation

---
Similar projects

- [Syslog](https://www.drupal.org/docs/core-modules-and-themes/core-modules/syslog) - Core logging to system log
- [DBLog](https://www.drupal.org/docs/core-modules-and-themes/core-modules/databas...) - Core database logging

---
Supporting this Module

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

---

Activity

Total releases
1
First release
Jul 2026
Latest release
16 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Jul 20, 2026