Re: [squid-users] Log to statsd

2021-08-11 Thread Amos Jeffries
On 11/08/21 8:51 pm, Moti Berger wrote: Hi Is there a way to configure Squid to output the logs to statsd rather than a file? Squid can send log lines to any TCP or UDP receiver which is able to handle line-oriented records. AFAIK statsd is one such agent. Today I have this:

Re: [squid-users] Log to statsd

2021-08-11 Thread David Touzeau
Basically syslogd can do what you want : send via TCP, HTTP, UDP So the deal is to use logformat my_metrics      [statsd] %icap::tt % Hi Is there a way to configure Squid to output the logs to statsd rather than a file? Today I have this: +logformat my_metrics  %icap::tt %However I

Re: [squid-users] Log to statsd

2021-08-11 Thread His Shadow
You can write your own logger daemon that would dump stuff directly to statsd. I've done it myself to send logs to logstash. ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users

[squid-users] Log to statsd

2021-08-11 Thread Moti Berger
Hi Is there a way to configure Squid to output the logs to statsd rather than a file? Today I have this: > +logformat my_metrics %icap::tt % +access_log daemon:/var/log/squid/my_metrics.log my_metrics > However I would like to avoid the overhead in parsing the log file by using statsd or