varnishlog

Display Varnish logs. More information: <https://varnish-cache.org/docs/trunk/reference/varnishlog.html>.

Install

All systems
curl cmd.cat/varnishlog.sh
Debian Debian
apt-get install varnish
Ubuntu
apt-get install varnish
Alpine
apk add varnish
Arch Arch Linux
pacman -S varnish
image/svg+xml Kali Linux
apt-get install varnish
Fedora
dnf install varnish
Windows (WSL2)
sudo apt-get update sudo apt-get install varnish
OS X
brew install varnish
Raspbian
apt-get install varnish
Docker
docker run cmd.cat/varnishlog varnishlog powered by Commando

Display Varnish logs. More information: <https://varnish-cache.org/docs/trunk/reference/varnishlog.html>.

  • Display logs in real time:
    varnishlog
  • Only display requests to a specific domain:
    varnishlog -q 'ReqHeader eq "Host: example.com"'
  • Only display POST requests:
    varnishlog -q 'ReqMethod eq "POST"'
  • Only display requests to a specific path:
    varnishlog -q 'ReqURL eq "/path"'
  • Only display requests to paths matching a regular expression:
    varnishlog -q 'ReqURL ~ "regex"'

© tl;dr; authors and contributors