I'm running into infrequent 503 errors which appear hard to pinpoint. Varnishlog is driving me mad, since I can't seem to get the information I want out of it.
I'd like to see both the client- and backend-communications as seen by Varnish. I thought the XID number, which is logged on Varnish's default error page, would allow me to filter the exact request out of the logging buffer. However, no combination of varnishlog parameters gives me the output I need.
The following only shows the client-side communication:
varnishlog -d -c -m ReqStart:1427305652
while this only shows the resulting backend communication:
varnishlog -d -b -m TxHeader:1427305652
Is there a one-liner to show the entire request?
Because the XID also appears in the
TxHeader
tag line when communicating with a client:and as the @Oneiroi mentioned, according to the
man page
:so, try this:
A sample results:
From the man page:
In theory negating adding -c or -b should retrieve the entire transaction.