<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Dridi,<div><br></div><div>I am reading few tags for Billing purpose. I have added VMOD for this.In vmod currently I was passing "-g session" option to varnish callback function. But <b>I found out that not getting ReqAcct tag. Also I am missing lots of logs itself.</b></div><div><br></div><div>After with discussion with you guys it seems problem is due to "-g session" option. So I removed that and tested again and looks better then before. Reduced frequency of missing ReqAcct and Log loss decreased a lot.</div><div><br></div><div>Now, my doubt, Is it better not to use any option and keep default setting, or to use -c option ? So I can minimize log loss as many as I can.</div><div><br></div><div>Here is small from vmod which is reading shared memory (<b>it was lot easier in varnish 3 because I was able to call dispatch function directly</b>),</div><div>vut = VUT_Init(argv[0], 1, argv, &s);<br></div><div>vut->dispatch_f = VarnishLog::handler;<br></div><div>vut->dispatch_priv = this;<br></div><div>vut->g_arg = 3; <---- I commented out this now ( -g session )<br></div><div>vut->sighup = 1;<br></div><div>vut->sighup_f = VarnishLog::sighup;<br></div><div>VUT_Setup(vut);<br></div><div>VUT_Main(vut);<br></div><div>VUT_Fini(&vut);<br></div><div><br></div><div><br></div><div>I can not change above whole setup but can modify few things in that.</div><div><br></div><div>Now, If you can answer previous questions will be really helpful. Particularly how -g session option creating problem ?</div><div><br></div><div>Thank you</div><div>Hardik</div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 18 Mar 2019 at 20:43, Dridi Boukelmoune <dridi@varni.sh> 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">On Sun, Mar 17, 2019 at 1:12 PM Hardik <<a href="mailto:hetardik.p@gmail.com" target="_blank">hetardik.p@gmail.com</a>> wrote:<br>
><br>
> Thanks a lot Dridi & Team for details..<br>
<br>
Before I can answer your questions, can you explain exactly what you<br>
are trying to do?<br>
<br>
We could probably give you better advice if we knew what you need to collect.<br>
<br>
Dridi<br>
</blockquote></div>