diff --git a/doc/examples/kea4/hooks.json b/doc/examples/kea4/hooks.json index d82db2b485..3bdf86ecdb 100644 --- a/doc/examples/kea4/hooks.json +++ b/doc/examples/kea4/hooks.json @@ -40,7 +40,7 @@ { "library": "/opt/lib/charging.so", "parameters": { - "path": "/var/lib/kea", + "path": "/var/log/kea", "base-name": "kea-forensic6" } } diff --git a/doc/examples/kea6/hooks.json b/doc/examples/kea6/hooks.json index 4677250e07..b683c6edb5 100644 --- a/doc/examples/kea6/hooks.json +++ b/doc/examples/kea6/hooks.json @@ -48,7 +48,7 @@ { "library": "/opt/lib/charging.so", "parameters": { - "path": "/var/lib/kea", + "path": "/var/log/kea", "base-name": "kea-forensic6" } } diff --git a/doc/sphinx/arm/hooks-legal-log.rst b/doc/sphinx/arm/hooks-legal-log.rst index fa7ff2ff51..149d1c0acc 100644 --- a/doc/sphinx/arm/hooks-legal-log.rst +++ b/doc/sphinx/arm/hooks-legal-log.rst @@ -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%%" } diff --git a/src/hooks/dhcp/forensic_log/libdhcp_legal_log.dox b/src/hooks/dhcp/forensic_log/libdhcp_legal_log.dox index 2cb89c4c51..8421bdfe33 100644 --- a/src/hooks/dhcp/forensic_log/libdhcp_legal_log.dox +++ b/src/hooks/dhcp/forensic_log/libdhcp_legal_log.dox @@ -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 "/var/lib/kea". The directory must exist. + default value is "/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". diff --git a/src/hooks/dhcp/forensic_log/rotating_file.h b/src/hooks/dhcp/forensic_log/rotating_file.h index f7e4b0b3e2..9d0adef891 100644 --- a/src/hooks/dhcp/forensic_log/rotating_file.h +++ b/src/hooks/dhcp/forensic_log/rotating_file.h @@ -93,7 +93,7 @@ public: /// mechanism: /// /// @b path - Directory in which the legal file(s) will be written. - /// The default value is "/var/lib/kea". The directory must exist. + /// The default value is "/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.