-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Simon Males
Sent: Friday, 3 December 2010 3:30 a.m.
To: Per Buer
Cc: [email protected]
Subject: Re: Chasing 503 Guru's

>>> Or is it common practice to write varnishlog to disk in production 
>>> environments?
>>
>> No. On Linux the vm get's slightly dazzled by all the IO and will
>> behave strangely. You can instruct varnishlog to only log 503's. That
>> might be ideal for you.

> I'm not sure how to do this. The closest I get is:
> varnishlog -o -i TxStatus -I 503
>
> Though that doesn't return the whole entry.

You could try something like this, which takes inspiration from something I 
found on Tollef's blog ( 
http://err.no/personal/blog/2008/Dec/17#2008-12-17-10-14_poor_mans_filtering_language
 )

varnishlog -o | perl -ne 'BEGIN { $/ = "";} print if (/TxStatus.*(50\d)/);'


_______________________________________________
varnish-misc mailing list
[email protected]
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to