• Varnishlog cheat sheet

    Date: 2011.04.25 | Category: Varnish

    BELOW IS VARNISH V3

    Look at an incoming client request of a specific URL:

    varnishlog -c -m RxURL:"readysetlearn/readysetlearn.htm"

    Look at a a backend request of a specific URL:

    varnishlog -b -m TxURL:"readysetlearn/readysetlearn.htm"

    See requests for one specific Hostname:

    varnishlog -c -m RxHeader:"Host: etherpad.org"

    See the age of the cache objects for a specific hostname:

    varnishlog -c -m RxHeader:"Host: etherpad.org" | grep Age
    BELOW IS VARNISH < V3

    Look at an incoming client request of a specific URL:

    varnishlog -c -o RxURL readysetlearn/readysetlearn.htm

    Look at a a backend request of a specific URL:

    varnishlog -b -o TxURL readysetlearn/readysetlearn.htm

    See requests for one specific Hostname:

    varnishlog -c -o RxHeader "Host: etherpad.org"

    See the age of the cache objects for a specific hostname:

    varnishlog -c -o RxHeader "Host: etherpad.org" | grep Age

    If an item has a high age it means that varnish is hitting the cache for it.

    Thanks to Mithrandir from the #Varnish IRC channel for helping out and thanks to Tomnomnom for V3 help!.

    Report Post As Inappropriate

    Related posts:

    1. WordPress Varnish Cache Config / VCL What is this for non-technical folks? WordPress sucks at delivering...
    2. Updated Varnish WordPress VCL THIS VARNISH CONFIG HAS BEEN UPDATED AND IS AVAILABLE HERE...
    3. How to install mod_rpaf Varnish WordPress Ubuntu And the geekiest title of the week goes to me…...
    4. WordPress mobile error: “the target server failed to respond” When joining a new mobile device to wordpress it looks...
    5. WordPress and Varnish comment IPs If your WordPress install is behind Varnish you may have...