r5498 - trunk/varnish-cache/doc/sphinx/reference
tfheen at varnish-cache.org
tfheen at varnish-cache.org
Wed Nov 3 12:07:34 CET 2010
Author: tfheen
Date: 2010-11-03 12:07:34 +0100 (Wed, 03 Nov 2010)
New Revision: 5498
Modified:
trunk/varnish-cache/doc/sphinx/reference/varnishncsa.rst
Log:
Document user-specifiable formats
Modified: trunk/varnish-cache/doc/sphinx/reference/varnishncsa.rst
===================================================================
--- trunk/varnish-cache/doc/sphinx/reference/varnishncsa.rst 2010-11-03 11:07:17 UTC (rev 5497)
+++ trunk/varnish-cache/doc/sphinx/reference/varnishncsa.rst 2010-11-03 11:07:34 UTC (rev 5498)
@@ -48,6 +48,54 @@
-f Prefer the X-Forwarded-For HTTP header over client.ip in
the log output.
+-F format Specify the log format used. Supported formatters are:
+
+ %b
+ Size of response in bytes, excluding HTTP headers.
+ In CLF format, i.e. a '-' rather than a 0 when no
+ bytes are sent.
+
+ %H
+ The request protocol
+
+ %h
+ Remote host
+
+ %{X}i
+ The contents of header line X. Supported headers are
+ *Referer*, *Host*, *X-Forwarded-For* and *User-agent*.
+
+ %l
+ Remote logname (always '-')
+
+ %m
+ Request method
+
+ %q
+ The query string, if no query string exists, an empty string.
+
+ %r
+ The first line of the request
+
+ %s
+ Status sent to the client
+
+ %t
+ Time when the request was received, in HTTP date/time
+ format.
+
+ %U
+ The request URL without any query string.
+
+ %u
+ Remote user from auth
+
+ %{X}x
+ Extended variables. Supported variables are:
+
+ Varnish:time_firstbyte
+ Time to the first byte from the backend arrived
+
-o Filter log output to request groups that match a regular
expression on a specified tag.
More information about the varnish-commit
mailing list