Re: [squid-users] Log to statsd
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: +logformat my_metrics %icap::tt % Say you have the statsd configured to receive on localhost port 1234. That would be configured in squid.conf as: access_log tcp://localhost:1234 my_metrics Since I don't know what input your statsd is expecting I am not able to provide a logformat right now. But since you are already parsing and converting the file it should not be too hard to figure out yourself. Amos ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Log to statsd
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 would like to avoid the overhead in parsing the log file by using statsd or something similar. Thanks, Moti ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Log to statsd
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
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 something similar. Thanks, Moti ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users