]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3831] fixed forensic log path in docs Kea-2.7.9
authorRazvan Becheriu <razvan@isc.org>
Thu, 22 May 2025 12:13:58 +0000 (15:13 +0300)
committerRazvan Becheriu <razvan@isc.org>
Thu, 22 May 2025 12:23:06 +0000 (12:23 +0000)
doc/examples/kea4/hooks.json
doc/examples/kea6/hooks.json
doc/sphinx/arm/hooks-legal-log.rst
src/hooks/dhcp/forensic_log/libdhcp_legal_log.dox
src/hooks/dhcp/forensic_log/rotating_file.h

index d82db2b485e6e03acc394e25ba4157b590efd28c..3bdf86ecdb28a2d4ad7d5308e082c29632de1689 100644 (file)
@@ -40,7 +40,7 @@
      {
          "library": "/opt/lib/charging.so",
          "parameters": {
-             "path": "/var/lib/kea",
+             "path": "/var/log/kea",
              "base-name": "kea-forensic6"
          }
      }
index 4677250e07744519e68f5f73a9c09d24245cd805..b683c6edb5dd7584a76a4dd118cbbaa20c6f2933 100644 (file)
@@ -48,7 +48,7 @@
      {
         "library": "/opt/lib/charging.so",
         "parameters": {
-             "path": "/var/lib/kea",
+             "path": "/var/log/kea",
              "base-name": "kea-forensic6"
         }
      }
index fa7ff2ff51cad5e0f66644467307af8864d4bfaa..149d1c0accb3ab451487cc6757f6c609595c3722 100644 (file)
@@ -85,7 +85,7 @@ configuration of the desired DHCP server modules. :ischooklib:`libdhcp_legal_log
 can save logs to a text file or to a database (created using
 :iscman:`kea-admin`; see :ref:`mysql-database-create` and :ref:`pgsql-database-create`).
 The library is installed alongside the Kea libraries in
-``[kea-install-dir]/var/lib/kea``, where ``kea-install-dir`` is determined
+``[kea-install-dir]/var/log/kea``, where ``kea-install-dir`` is determined
 by the ``--prefix`` meson setup option which defaults to
 ``/usr/local``. Assuming the default value, :iscman:`kea-dhcp4` can be configured to load
 :ischooklib:`libdhcp_legal_log.so` like this:
@@ -98,7 +98,7 @@ by the ``--prefix`` meson setup option which defaults to
                 {
                     "library": "/usr/local/lib/kea/hooks/libdhcp_legal_log.so",
                     "parameters": {
-                        "path": "/var/lib/kea/log",
+                        "path": "/var/log/kea",
                         "base-name": "kea-forensic4"
                     }
                 }
@@ -116,7 +116,7 @@ For :iscman:`kea-dhcp6`, the configuration is:
                 {
                     "library": "/usr/local/lib/kea/hooks/libdhcp_legal_log.so",
                     "parameters": {
-                        "path": "/var/lib/kea/log",
+                        "path": "/var/log/kea",
                         "base-name": "kea-forensic6"
                     }
                 }
@@ -198,7 +198,7 @@ Examples:
                 {
                     "library": "/usr/local/lib/kea/hooks/libdhcp_legal_log.so",
                     "parameters": {
-                        "path": "/var/lib/kea/log",
+                        "path": "/var/log/kea",
                         "base-name": "kea-forensic6",
                         "request-parser-format": "'first line' + 0x0a + 'second line'",
                         "response-parser-format": "'also second line' + 0x0a + 'third line'"
@@ -231,7 +231,7 @@ Examples:
                 {
                     "library": "/usr/local/lib/kea/hooks/libdhcp_legal_log.so",
                     "parameters": {
-                        "path": "/var/lib/kea/log",
+                        "path": "/var/log/kea",
                         "base-name": "kea-forensic6",
                         "timestamp-format": "%H%t%w %F%%"
                     }
index 2cb89c4c51e69b34f78cb910f63a9b613b65dd51..8421bdfe3365ce688291a19dc03d4f8f2a1c528c 100644 (file)
@@ -357,7 +357,7 @@ configuration:
     "hooks-libraries": [
         { "library": "/usr/local/lib/libdhcp_legal_log.so",
           "parameters": {
-            "path": "/var/lib/kea",
+            "path": "/var/log/kea",
             "base-name": "kea-legal4" } },
         ...
     ]
@@ -371,7 +371,7 @@ To configure it for kea-dhcp6, the commands are simply as shown below:
     "hooks-libraries": [
         { "library": "/usr/local/lib/libdhcp_legal_log.so",
           "parameters": {
-            "path": "/var/lib/kea",
+            "path": "/var/log/kea",
             "base-name": "kea-legal6" } },
         ...
     ]
@@ -380,7 +380,7 @@ To configure it for kea-dhcp6, the commands are simply as shown below:
 
 Two string Hook Library Parameters are supported:
  - @b path - Directory in which the legal file(s) will be written.  The
- default value is "<prefix>/var/lib/kea".  The directory must exist.
+ default value is "<prefix>/var/log/kea".  The directory must exist.
  - @b base-name - An arbitrary value which is used in conjunction with
  the current system date to form the current legal file name.  It defaults
  to "kea-legal".
index f7e4b0b3e2cd4a9691f464a21dc022f6522c3d15..9d0adef891c778a6e740be66fc450b5b4865189e 100644 (file)
@@ -93,7 +93,7 @@ public:
     /// mechanism:
     ///
     /// @b path - Directory in which the legal file(s) will be written.
-    /// The default value is "<prefix>/var/lib/kea". The directory must exist.
+    /// The default value is "<prefix>/var/log/kea". The directory must exist.
     ///
     /// @b base-name - An arbitrary value which is used in conjunction
     /// with current system date to form the current legal file name.