[squid-users] New line in logformat

Moti Berger moberger at metanetworks.com
Thu Sep 2 12:07:08 UTC 2021


Hi

I want to send metrics to statsd, so I tried doing the following:

> logformat metrics_statsd
> my_service_latency:%{my_service}adapt::sum_trs|ms\nicap_total:%icap::tt|ms
>
access_log tcp://1.2.3.4:8125 logformat=metrics_statsd


In statsd daemon I see only the first (it supports multiple metrics
separated by \n -
https://github.com/statsd/statsd/blob/master/docs/server.md)
>From http://www.squid-cache.org/Doc/config/logformat/ I understand that
'\n' is what I need to use in order to get a new line, but it seems I get
two characters instead - '\' and 'n'.
What is the proper way to have a new line?

Thanks,
Moti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20210902/9f018939/attachment.htm>


More information about the squid-users mailing list