<div dir="ltr">Hi,<div><br></div><div>Unless I'm mistaken, what you are asking for is the first item in the EXAMPLE section of "man varnishncsa":</div><div><br></div><div> Log the second field of the Begin record, corresponding to the VXID of the parent transaction:<br><br> varnishncsa -F "%{VSL:Begin[2]}x"</div><div><br></div><div>Am I missing something?</div><div><br><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 2, 2019 at 11:21 PM kokoniimasu <<a href="mailto:kokoniimasu@gmail.com">kokoniimasu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I'm using varnishncsa, but it's difficult to investigate because does<br>
not show ESI sub-request in association.<br>
I added show ESI option (-e) and Varnish:vxid_parent x format.<br>
<br>
wip patch<br>
<a href="https://gist.github.com/xcir/78c02d50681a4a78bc8c79ffd8421c8c" rel="noreferrer" target="_blank">https://gist.github.com/xcir/78c02d50681a4a78bc8c79ffd8421c8c</a><br>
<br>
- Output sample<br>
<br>
# varnishncsa -c -e -g request -F '%{Varnish:side}x %D<br>
v:%{Varnish:vxid}x vp:%{Varnish:vxid_parent}x %{Varnish:hitmiss}x "%r"<br>
%s %b'<br>
c 1547310 v:193913332 vp:0 miss "GET http://**** HTTP/1.1" 200 7985<br>
<-- slow base page<br>
c 577 v:193913334 vp:193913332 hit "GET http://**** HTTP/1.1" 200 163<br>
c 48233 v:193913336 vp:193913332 miss "GET http://**** HTTP/1.1" 200<br>
1561 <-- fast sub-request<br>
c 527 v:193913338 vp:193913332 hit "GET http://**** HTTP/1.1" 200 164<br>
<br>
# varnishncsa -b -c -e -g request -F '%{Varnish:side}x %D<br>
v:%{Varnish:vxid}x vp:%{Varnish:vxid_parent}x %{Varnish:hitmiss}x "%r"<br>
%s %b'<br>
c 2262459 v:221188118 vp:0 miss "GET http://**** HTTP/1.1" 200 18168<br>
b 817749 v:221188119 vp:221188118 - "GET http://**** HTTP/1.1" 200 0<br>
c 550 v:221188120 vp:221188118 hit "GET http://**** HTTP/1.1" 200 163<br>
c 295 v:221188122 vp:221188118 hit "GET http://**** HTTP/1.1" 200 1565<br>
c 494 v:221188123 vp:221188118 hit "GET http://**** HTTP/1.1" 200 162<br>
c 262 v:221188125 vp:221188118 hit "GET http://**** HTTP/1.1" 200 0<br>
c 1242 v:221188127 vp:221188118 hit "GET http://**** HTTP/1.1" 200 1488<br>
c 211 v:221188129 vp:221188118 hit "GET http://**** HTTP/1.1" 200 44<br>
c 1316055 v:221188130 vp:221188118 miss "GET http://**** HTTP/1.1" 200<br>
4353 <-- slow sub-request<br>
c 34039 v:221188132 vp:221188118 hit "GET http://**** HTTP/1.1" 200 788<br>
c 18784 v:221188134 vp:221188118 hit "GET http://**** HTTP/1.1" 200 0<br>
c 32942 v:221188135 vp:221188118 hit "GET http://**** HTTP/1.1" 200 774<br>
c 22181 v:221188136 vp:221188118 hit "GET http://**** HTTP/1.1" 200 163<br>
c 5766 v:221188138 vp:221188118 hit "GET http://**** HTTP/1.1" 200 0<br>
c 8005 v:221188140 vp:221188118 miss "GET http://**** HTTP/1.1" 200<br>
163 <-- fast sub-request<br>
c 1626 v:221188142 vp:221188118 hit "GET http://**** HTTP/1.1" 200 163<br>
c 230 v:221188144 vp:221188118 hit "GET http://**** HTTP/1.1" 200 739<br>
b 1315672 v:221188131 vp:221188130 - "GET http://**** HTTP/1.1" 200 0<br>
b 1187 v:221188141 vp:221188140 - "GET http://**** HTTP/1.1" 200 0<br>
<br>
I’m thinking about whether to put PR.<br>
Can I get your opinion?<br>
<br>
Regards,<br>
--<br>
Shohei Tanaka(@xcir)<br>
<a href="http://blog.xcir.net/" rel="noreferrer" target="_blank">http://blog.xcir.net/</a> (JP)<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div>