[evolvis-commits] r9179: Some informations about log formats in ap?==?UTF-8?Q?ache↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 17:19:58 CET 2011


Author: mirabilos
Date: 2011-02-24 17:19:57 +0100 (Thu, 24 Feb 2011)
New Revision: 9179

Added:
   trunk/gforge_base/evolvisforge-5.1/gforge/docs/log_formats.txt
Log:
Some informations about log formats in apache


Added: trunk/gforge_base/evolvisforge-5.1/gforge/docs/log_formats.txt
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/docs/log_formats.txt	                        (rev 0)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/docs/log_formats.txt	2011-02-24 16:19:57 UTC (rev 9179)
@@ -0,0 +1,60 @@
+From http://httpd.apache.org/docs/mod/mod_log_config.html#formats
+Combined log format http://httpd.apache.org/docs/logs.html#combined
+
+Some commonly used log format strings are:
+
+Common Log Format (CLF)
+    "%h %l %u %t \"%r\" %>s %b"
+Common Log Format with Virtual Host
+    "%v %h %l %u %t \"%r\" %>s %b"
+NCSA extended/combined log format
+    "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
+Referer log format
+    "%{Referer}i -> %U"
+Agent (Browser) log format
+    "%{User-agent}i"
+
+
+Used in gforge debian package
+
+LogFormat "%h %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" gforge
+
+
+The characteristics of the request itself are logged by placing "%" directives in the format string, which are replaced in the log entry by the values as follows:
+
+%...a:          Remote IP-address
+%...A:          Local IP-address
+%...B:          Bytes sent, excluding HTTP headers.
+%...b:          Bytes sent, excluding HTTP headers. In CLF format
+        i.e. a '-' rather than a 0 when no bytes are sent.
+%...c:          Connection status when response was completed.
+                'X' = connection aborted before the response completed.
+                '+' = connection may be kept alive after the response is sent.
+                '-' = connection will be closed after the response is sent.
+%...{FOOBAR}e:  The contents of the environment variable FOOBAR
+%...f:          Filename
+%...h:          Remote host
+%...H       The request protocol
+%...{Foobar}i:  The contents of Foobar: header line(s) in the request
+                sent to the server.
+%...l:          Remote logname (from identd, if supplied)
+%...m       The request method
+%...{Foobar}n:  The contents of note "Foobar" from another module.
+%...{Foobar}o:  The contents of Foobar: header line(s) in the reply.
+%...p:          The canonical Port of the server serving the request
+%...P:          The process ID of the child that serviced the request.
+%...q       The query string (prepended with a ? if a query string exists,
+        otherwise an empty string)
+%...r:          First line of request
+%...s:          Status.  For requests that got internally redirected, this is
+                the status of the *original* request --- %...>s for the last.
+%...t:          Time, in common log format time format (standard english format)
+%...{format}t:  The time, in the form given by format, which should
+                be in strftime(3) format. (potentially localized)
+
+%...T:          The time taken to serve the request, in seconds.
+%...u:          Remote user (from auth; may be bogus if return status (%s) is 401)
+%...U:          The URL path requested, not including any query string.
+%...v:          The canonical ServerName of the server serving the request.
+%...V:          The server name according to the UseCanonicalName setting.
+



More information about the evolvis-commits mailing list