Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to include following information in my varnishncsa logs (I need to relate some issues with specific users).

  • content of post requests
  • cookie with full content
  • XID

After reading I am not really sure how I can achieve it.

BTW, I am not able to add the "varnishncsa" tag to the question - someone can add it (with higher reputation? :P).

share|improve this question
up vote 2 down vote accepted

It is possible with the varnish 3.0.3 release:

Logging of POST requests, cookies and XID in varnish (varnishncsa)

share|improve this answer

Do you absolutely need to use varnishncsa? Varnishlog (with some extra command line options or shell piping magic) can give you the cookies (and their contents), and the XID, easily. I doubt the full content of the POST requests is available to log.

share|improve this answer
:( How I can do it with the varnishlog at least? – bluszcz Sep 19 '12 at 10:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.