<div dir="ltr">Is there a performance hit by using a logformat per metric? Let's say I need 5-10 metrics.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 2, 2021 at 8:15 PM His Shadow <<a href="mailto:shadowpilot34@gmail.com">shadowpilot34@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">I think it would be easier to just write a logfile daemon, than<br>
patching squid. The protocol is very easy.<br>
<a href="http://www.squid-cache.org/Doc/config/logfile_daemon/" rel="noreferrer" target="_blank">http://www.squid-cache.org/Doc/config/logfile_daemon/</a><br>
You'd just ignore everything but lines starting with L.<br>
<br>
чт, 2 сент. 2021 г. в 16:49, Amos Jeffries <<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>>:<br>
><br>
> On 3/09/21 12:07 am, Moti Berger wrote:<br>
> > Hi<br>
> ><br>
> > I want to send metrics to statsd, so I tried doing the following:<br>
> ><br>
> >     logformat metrics_statsd<br>
> >     my_service_latency:%{my_service}adapt::sum_trs|ms\nicap_total:%icap::tt|ms<br>
> ><br>
> >     access_log tcp://<a href="http://1.2.3.4:8125" rel="noreferrer" target="_blank">1.2.3.4:8125</a> <<a href="http://1.2.3.4:8125" rel="noreferrer" target="_blank">http://1.2.3.4:8125</a>><br>
> >     logformat=metrics_statsd<br>
> ><br>
> ><br>
> > In statsd daemon I see only the first (it supports multiple metrics<br>
> > separated by \n -<br>
><br>
> Ouch.  You may be able to work around this with a logformat for each<br>
> metric you want to send and a access_log line sending that metric.<br>
><br>
> Otherwise you are looking at a patch for either Squid or the statsd daemon.<br>
><br>
> I am happy to assist with a patch for Squid if you want to. Contact me<br>
> directly for rates etc.<br>
><br>
> Amos<br>
> _______________________________________________<br>
> squid-users mailing list<br>
> <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
> <a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
<br>
<br>
<br>
-- <br>
HisShadow<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>