How to rotate varnish log files with cronolog?

刘开玄 liukaixuan at gmail.com
Thu Feb 26 03:24:25 CET 2009


It works. thank you, it really help me out!

On Tue, Feb 24, 2009 at 7:25 PM, Tollef Fog Heen
<tfheen at redpill-linpro.com> wrote:
>
> ]] 刘开玄
>
> | 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