varnishncsa -F question
Jacques
whshub at gmail.com
Fri Sep 2 20:26:09 CEST 2011
I think I'm missing something. We use the following without problem on
3.0.1
varnishncsa -F '%{X-Forwarded-For}i %l %u %t "%r" %s %b "%{Referer}i"
"%{User-agent}i" "%{Cookie}i" "%{Varnish:hitmiss}x"' -X
'pingdom$|\.png$|\.ico$|\.jpg$|\.gif$'
On Fri, Sep 2, 2011 at 9:22 AM, Mit Rowe <mit at stagename.com> wrote:
> Hello!
>
> I am using varnish 3.0.1 and have a question about varnishncsalog
>
> I would like to spit out extra parameters in my logs, so i'm attempting to
> use the -F command line flag.
>
> However, my need for spaces seems to be causing some problems.
>
> for example...
>
> -F %h %t
>
> (which i don't expect to work)
>
> prints
>
> 127.0.0.1<NEWLINE>
>
> (and that's it)
>
> -F '%h %t'
>
> prints
>
> '127.0.0.1<NEWLINE>
>
> -F "%h %t"
>
> prints
>
> "127.0.0.1<NEWLINE>
>
> and
>
> -F %h\ %t
>
> prints
>
> 127.0.0.1\<NEWLINE>
>
> Has anyone had any success specifying a log format containing spaces?
>
>
>
>
> --
> Will 'Mit' Rowe
> Stagename*
> *1-866-326-3098
> mit at stagename.com <josh at stagename.com>
> www.stagename.com
> Twitter: @stagename
>
> *The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of this
> information by persons or entities other than the intended recipient is
> prohibited. If you received this transmission in error, please contact the
> sender and delete all material contained herein from your computer.*
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110902/c283a203/attachment-0003.html>
More information about the varnish-misc
mailing list