Varnishncsa Random Log Sampling ?

Yassine Aouadi yassine.aouadi90 at gmail.com
Mon Mar 2 11:13:53 UTC 2020


Hello,

I  am sending my Varnish log to  to remote SAAS solution  I and want to
improve  logs costs by  implementing a server side sampling solution .

First I splitted Varnishnncsa  into two service one for error logs and the
other for acces logs  :

CGroup: /system.slice/varnishncsa-error.service
           └─18458 /usr/bin/varnishncsa -c -b -a -w
/var/log/varnish/varnishncsa-error.log -D -P
/run/varnishncsa/varnishncsa-error.pid -f
/etc/varnish/varnishncsa_logmatic.format -q *Status > 399

  CGroup: /system.slice/varnishncsa.service
           └─18347 /usr/bin/varnishncsa -c -b -a -w
/var/log/varnish/varnishncsa-access.log -D -P
/run/varnishncsa/varnishncsa-access.pid -f
/etc/varnish/varnishncsa_logmatic.format -q *Status < 400


Is there Any way to go further with  varnishncsa  and perform and random
sampling of my access logs ? for example write only 10 % of access logs

If it's not possible with varnishncsa any   Suggestion ? I tried rsyslog
random sampling but  I am facing memory leaks while stress testing server
with high load

Thanks,

Yassine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20200302/f859b27a/attachment.html>


More information about the varnish-misc mailing list