Search squid archive

New line in logformat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux