Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 https://www.varnish-cache.org/docs/trunk/reference/varnishncsa.html 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
add comment

2 Answers

up vote 1 down vote accepted

It is possible with the varnish 3.0.3 release:

https://www.varnish-cache.org/releases/varnish-cache-3.0.3 http://lassekarstensen.wordpress.com/2012/06/15/varnishncsa-and-std-log/

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

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.