1

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).

arjarj
  • 2,981
  • 1
  • 16
  • 10
bluszcz
  • 409
  • 1
  • 6
  • 16

2 Answers2

0

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.

arjarj
  • 2,981
  • 1
  • 16
  • 10