How to rotate varnish log files with cronolog?
刘开玄
liukaixuan at gmail.com
Tue Feb 24 03:54:55 CET 2009
Does Varnish support cronolog? I have searched over Google and the
archived maillist for a whole day, but find nothing useful. My Varnish
is the lastest 2.0.3.
I have tried this:
/opt/varnish203/bin/varnishncsa -a -w |/usr/bin/cronolog
/logs/mysite_access_%Y%m%d.log
/opt/varnish203/bin/varnishncsa: option requires an argument -- w
usage: varnishncsa [-bCcd] [-i tag] [-I regexp] [-k keep] [-r file]
[-s skip] [-X regexp] [-x tag] [-aDV] [-n varnish_name] [-P file] [-w
file]
Thanks in advance for any help,
Louis
More information about the varnish-misc
mailing list