Thank you Juan.
Varnishncsa only provide very limit information in good one line format, but 
varnishlog actually provide very detail information on multi lines, like retry 
times, error reason.
The thing I want is with all the details in one line, so I can process it with 
my tools that only deal with logs one line at a time.

Thanks,
Z9
Sent from my BlackBerry device on the Rogers Wireless Network

-----Original Message-----
From: <[email protected]>
Date: Thu, 27 Sep 2012 11:14:07 
To: <[email protected]>; <[email protected]>
Subject: RE: How to put varnishlog to one line

I don't know if this is what you want to do, try with varnishncsa instead 
varnishlog...
Example:
varnishncsa | grep -P "\"GET .+\" 50(2|3) "

Juan Salinas Contreras
Correo: [email protected]
Telefono: +56-2-3301897



-----Mensaje original-----
De: [email protected] 
[mailto:[email protected]] En nombre de 
[email protected]
Enviado el: jueves, 13 de septiembre de 2012 0:15
Para: [email protected]
Asunto: How to put varnishlog to one line

Hi,
I am pretty new to varnish. Sorry for newbie question.
I use varnishlog -c -m 'TxStatus:50(2|3)' to get 502,503 errors. My question is:
If I want this save to a file but all info should be on one line, how to do 
that?

Thanks,
Z9
Sent from my BlackBerry device on the Rogers Wireless Network 
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to