How to put varnishlog to one line

Per Buer perbu at varnish-software.com
Tue Sep 18 09:12:11 CEST 2012


Hi,

On Thu, Sep 13, 2012 at 5:14 AM, <z999666999 at gmail.com> wrote:

> 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?
>

You would have to come up with some perl or similar code to do that.
varnishlog  won't do that out of the box. varnishncsa might, however, if
you can live with the limited data there.


-- 
Per Buer
Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
*Varnish makes websites fly!*
Whitepapers <http://www.varnish-software.com/whitepapers> |
Video<http://www.youtube.com/watch?v=x7t2Sp174eI> |
Twitter <https://twitter.com/varnishsoftware>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120918/80db5a67/attachment.html>


More information about the varnish-misc mailing list