Varnish 2.x Debugging

Events happening in the community are now at Drupal community events on www.drupal.org.
vaibhavjain's picture

Hello Drupalers,

I am trying to figure out a way to debug Varnish and write some code in VCL file.
I am struggling to get all attributes and properties of an object.
Is there anything like print_r for varnish too.

I am looking at the request object and object is "req", any way to know what all information does it contain ?

Hoping to get a reply soon :)

Comments

You can filter the output of

dalin's picture

You can filter the output of varnishlog by your IP address:
http://mattiasgeniar.be/2011/11/26/varnish-filter-by-source-ip-using-var...

Also in your .vcl file you can log additional things (that will be viewable with varnishlog):

  # Log something.
  log "Stripped URL";
  log req.url;

The syntax for 3.x is slightly different IIRC.

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

@dalin, Tried this, sadly,

vaibhavjain's picture

@dalin,

Tried this, sadly, didnt work for me :(
I am still looking it to get it working.

Vaibhav Jain

have you tried appending text

technicalknockout's picture

have you tried appending text right to obj.response ? haven't tried myself, but might be worth a shot

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: