How to rotate varnish log files with cronolog?

Tollef Fog Heen tfheen at redpill-linpro.com
Tue Feb 24 12:25:58 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'm not sure how cronolog works, but it seems like it takes log files
from stdin and handles the rotation automatically.

Just use «/opt/varnish203/bin/varnishncsa |/usr/bin/cronolog /logs/mysite_access_%Y%m%d.log»
and you should be fine.

-- 
Tollef Fog Heen 
Redpill Linpro -- Changing the game!
t: +47 21 54 41 73



More information about the varnish-misc mailing list