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

cookiesloggingvarnishvarnishncsa

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