From 29199b507f80b88f98dfee74bb508b37926c7cda Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 13 May 2013 10:05:29 +0000
Subject: [PATCH] OPENDJ-902 (CR-1654) Add connectionID to the HTTP access log + move to extended log format

---
 opends/src/admin/defn/org/opends/server/admin/std/FileBasedHTTPAccessLogPublisherConfiguration.xml |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/opends/src/admin/defn/org/opends/server/admin/std/FileBasedHTTPAccessLogPublisherConfiguration.xml b/opends/src/admin/defn/org/opends/server/admin/std/FileBasedHTTPAccessLogPublisherConfiguration.xml
index dec8d36..28e0737 100644
--- a/opends/src/admin/defn/org/opends/server/admin/std/FileBasedHTTPAccessLogPublisherConfiguration.xml
+++ b/opends/src/admin/defn/org/opends/server/admin/std/FileBasedHTTPAccessLogPublisherConfiguration.xml
@@ -285,6 +285,42 @@
       </ldap:attribute>
     </adm:profile>
   </adm:property>
+  <adm:property name="log-format">
+    <adm:synopsis>
+      Specifies how log records should be formatted and written to the HTTP
+      access log.
+    </adm:synopsis>
+    <adm:default-behavior>
+      <adm:defined>
+        <adm:value>cs-host c-ip cs-username datetime cs-method cs-uri-query 
+        cs-version sc-status sc-bytes cs(User-Agent) x-connection-id</adm:value>
+      </adm:defined>
+    </adm:default-behavior>
+    <adm:syntax>
+     <adm:string>
+       <adm:pattern>
+        <adm:regex>[a-zA-Z0-9-()]+( [a-zA-Z0-9-()]+)*</adm:regex>
+        <adm:usage>FORMAT</adm:usage>
+          <adm:synopsis>
+            A string describing the extended log format to be used for logging
+            HTTP accesses. Available values are listed on the W3C working draft
+            http://www.w3.org/TR/WD-logfile.html and Microsoft website
+            http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/676400bc-8969-4aa7-851a-9319490a9bbb.mspx?mfr=true
+            . Please note that "date" and "time" have been merged into
+            "datetime" and that its ouput is controlled by 
+            "ds-cfg-log-record-time-format" property. OpenDJ adds the 
+            application specific field "x-connection-id" which displays the
+            internal connection ID assigned to the HTTP client connection.
+          </adm:synopsis>
+        </adm:pattern>
+      </adm:string>
+    </adm:syntax>
+    <adm:profile name="ldap">
+      <ldap:attribute>
+        <ldap:name>ds-cfg-log-format</ldap:name>
+      </ldap:attribute>
+    </adm:profile>
+  </adm:property>
   <adm:property name="log-record-time-format">
     <adm:synopsis>
       Specifies the format string that is used to generate log record

--
Gitblit v1.10.0