reg: not getting ReqAcct tag in varnishlog
hetardik.p at gmail.com
Tue Mar 19 00:39:09 UTC 2019
Can you give me a list of log records you need to collect?
possibly how you are trying to group them if they come from different
*I am reading based xid ( by FD ). Means reading full records per fd.*
Please let me know if any other information I can provide..
If this is not related to my problem still I am curious to know how
grouping is happening. You can point out some code or links with some
details, I will go through.
On Tue, 19 Mar 2019 at 00:43, Dridi Boukelmoune <dridi at varni.sh> wrote:
> On Mon, Mar 18, 2019 at 5:53 PM Hardik <hetardik.p at gmail.com> wrote:
> > Hi Dridi,
> > 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 I found out that not getting ReqAcct tag. Also I am missing
> lots of logs itself.
> > 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.
> > 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.
> > Here is small from vmod which is reading shared memory (it was lot
> easier in varnish 3 because I was able to call dispatch function directly),
> > vut = VUT_Init(argv, 1, argv, &s);
> > vut->dispatch_f = VarnishLog::handler;
> > vut->dispatch_priv = this;
> > vut->g_arg = 3; <---- I commented out this now ( -g session )
> > vut->sighup = 1;
> > vut->sighup_f = VarnishLog::sighup;
> > VUT_Setup(vut);
> > VUT_Main(vut);
> > VUT_Fini(&vut);
> So you wrote your own log utility in C++? Wow!
> > I can not change above whole setup but can modify few things in that.
> > Now, If you can answer previous questions will be really helpful.
> Particularly how -g session option creating problem ?
> Sorry but this is not what I was looking for. 
> Can you give me a list of log records you need to collect? And
> possibly how you are trying to group them if they come from different
> transactions? There's a lot we can do without building a new utility.
>  http://xyproblem.info/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc