mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[5338] Update logging configuration for specific daemons.
This commit is contained in:
@@ -297,7 +297,7 @@ http {
|
|||||||
The CA is started by running its binary and specifying the configuration file
|
The CA is started by running its binary and specifying the configuration file
|
||||||
it should use. For example:
|
it should use. For example:
|
||||||
<screen>
|
<screen>
|
||||||
$ ./kea-ctrl-agent -c /usr/local/etc/kea/kea.conf
|
$ ./kea-ctrl-agent -c /usr/local/etc/kea/kea-ctrl-agent.conf
|
||||||
</screen>
|
</screen>
|
||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
|
@@ -73,7 +73,11 @@ keactrl <command> [-c keactrl-config-file] [-s server[,server,..]]
|
|||||||
prefix=@prefix@
|
prefix=@prefix@
|
||||||
|
|
||||||
# Location of Kea configuration file.
|
# Location of Kea configuration file.
|
||||||
kea_config_file=@sysconfdir@/@PACKAGE@/kea.conf
|
kea_dhcp4_config_file=@sysconfdir@/@PACKAGE@/kea-dhcp4.conf
|
||||||
|
kea_dhcp6_config_file=@sysconfdir@/@PACKAGE@/kea-dhcp6.conf
|
||||||
|
kea_dhcp_ddns_config_file=@sysconfdir@/@PACKAGE@/kea-dhcp-ddns.conf
|
||||||
|
kea_ctrl_agent_config_file=@sysconfdir@/@PACKAGE@/kea-ctrl-agent.conf
|
||||||
|
|
||||||
|
|
||||||
# Location of Kea binaries.
|
# Location of Kea binaries.
|
||||||
exec_prefix=@exec_prefix@
|
exec_prefix=@exec_prefix@
|
||||||
@@ -168,10 +172,10 @@ kea_verbose=no
|
|||||||
the servers looks similar to the following:
|
the servers looks similar to the following:
|
||||||
<screen>
|
<screen>
|
||||||
<userinput>$ keactrl start</userinput>
|
<userinput>$ keactrl start</userinput>
|
||||||
INFO/keactrl: Starting kea-dhcp4 -c /usr/local/etc/kea/kea.conf -d
|
INFO/keactrl: Starting kea-dhcp4 -c /usr/local/etc/kea/kea-dhcp4.conf -d
|
||||||
INFO/keactrl: Starting kea-dhcp6 -c /usr/local/etc/kea/kea.conf -d
|
INFO/keactrl: Starting kea-dhcp6 -c /usr/local/etc/kea/kea-dhcp6.conf -d
|
||||||
INFO/keactrl: Starting kea-dhcp-ddns -c /usr/local/etc/kea/kea.conf -d
|
INFO/keactrl: Starting kea-dhcp-ddns -c /usr/local/etc/kea/kea-dhcp-ddns.conf -d
|
||||||
INFO/keactrl: Starting kea-ctrl-agent -c /usr/local/etc/kea/kea.conf -d
|
INFO/keactrl: Starting kea-ctrl-agent -c /usr/local/etc/kea/kea-ctrl-agent.conf -d
|
||||||
</screen>
|
</screen>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@@ -261,6 +265,10 @@ DHCPv6 server: inactive
|
|||||||
DHCP DDNS: active
|
DHCP DDNS: active
|
||||||
Control Agent: active
|
Control Agent: active
|
||||||
Kea configuration file: /usr/local/etc/kea/kea.conf
|
Kea configuration file: /usr/local/etc/kea/kea.conf
|
||||||
|
Kea DHCPv4 configuration file: /usr/local/etc/kea/kea-dhcp4.conf
|
||||||
|
Kea DHCPv6 configuration file: /usr/local/etc/kea/kea-dhcp6.conf
|
||||||
|
Kea DHCP DDNS configuration file: /usr/local/etc/kea/kea-dhcp-ddns.conf
|
||||||
|
Kea Control Agent configuration file: /usr/local/etc/kea/kea-ctrl-agent.conf
|
||||||
keactrl configuration file: /usr/local/etc/kea/keactrl.conf
|
keactrl configuration file: /usr/local/etc/kea/keactrl.conf
|
||||||
</screen>
|
</screen>
|
||||||
</para>
|
</para>
|
||||||
|
@@ -61,6 +61,14 @@ $ <userinput>./configure [your extra parameters]</userinput></screen>
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Edit the Kea configuration files which by default are installed in
|
||||||
|
the <filename>[kea-install-dir]/etc/kea/</filename> directory. These are:
|
||||||
|
kea-dhcp4.conf, kea-dhcp6.conf, kea-dhcp-ddns.conf and kea-ctrl-agent.conf,
|
||||||
|
for DHCPv4 server, DHCPv6 server, D2 and Control Agent respectively.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Edit the configuration file which by default is installed in
|
<para>Edit the configuration file which by default is installed in
|
||||||
<filename>[kea-install-dir]/etc/kea/kea.conf</filename> and contains
|
<filename>[kea-install-dir]/etc/kea/kea.conf</filename> and contains
|
||||||
|
@@ -51,10 +51,8 @@
|
|||||||
{
|
{
|
||||||
"loggers": [
|
"loggers": [
|
||||||
{
|
{
|
||||||
// This section affects kea-dhcp4, which is the base logger for DHCPv4
|
// This specifies the logging for Control Agent daemon.
|
||||||
// component. It tells DHCPv4 server to write all log messages (on
|
"name": "kea-ctrl-agent",
|
||||||
// severity INFO or more) to a file.
|
|
||||||
"name": "kea-dhcp4",
|
|
||||||
"output_options": [
|
"output_options": [
|
||||||
{
|
{
|
||||||
// Specifies the output file. There are several special values
|
// Specifies the output file. There are several special values
|
||||||
@@ -64,7 +62,7 @@
|
|||||||
// - syslog (logs to syslog)
|
// - syslog (logs to syslog)
|
||||||
// - syslog:name (logs to syslog using specified name)
|
// - syslog:name (logs to syslog using specified name)
|
||||||
// Any other value is considered a name of a time
|
// Any other value is considered a name of a time
|
||||||
"output": "@localstatedir@/log/kea-dhcp4.log"
|
"output": "@localstatedir@/log/kea-ctrl-agent.log"
|
||||||
|
|
||||||
// This governs whether the log output is flushed to disk after
|
// This governs whether the log output is flushed to disk after
|
||||||
// every write.
|
// every write.
|
||||||
@@ -86,39 +84,6 @@
|
|||||||
// 99 is most verbose. Be cautious, Kea can generate lots and lots
|
// 99 is most verbose. Be cautious, Kea can generate lots and lots
|
||||||
// of logs if told to do so.
|
// of logs if told to do so.
|
||||||
"debuglevel": 0
|
"debuglevel": 0
|
||||||
},
|
|
||||||
{
|
|
||||||
// This specifies the logging for kea-dhcp6 logger, i.e. all logs
|
|
||||||
// generated by Kea DHCPv6 server.
|
|
||||||
"name": "kea-dhcp6",
|
|
||||||
"output_options": [
|
|
||||||
{
|
|
||||||
"output": "@localstatedir@/log/kea-dhcp6.log"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"severity": "INFO",
|
|
||||||
"debuglevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
// This specifies the logging for D2 (DHCP-DDNS) daemon.
|
|
||||||
"name": "kea-dhcp-ddns",
|
|
||||||
"output_options": [
|
|
||||||
{
|
|
||||||
"output": "@localstatedir@/log/kea-ddns.log"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"severity": "INFO",
|
|
||||||
"debuglevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "kea-ctrl-agent",
|
|
||||||
"output_options": [
|
|
||||||
{
|
|
||||||
"output": "@localstatedir@/log/kea-ctrl-agent.log"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"severity": "INFO",
|
|
||||||
"debuglevel": 0
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -63,10 +63,8 @@
|
|||||||
{
|
{
|
||||||
"loggers": [
|
"loggers": [
|
||||||
{
|
{
|
||||||
// This section affects kea-dhcp4, which is the base logger for DHCPv4
|
// This specifies the logging for D2 (DHCP-DDNS) daemon.
|
||||||
// component. It tells DHCPv4 server to write all log messages (on
|
"name": "kea-dhcp-ddns",
|
||||||
// severity INFO or more) to a file.
|
|
||||||
"name": "kea-dhcp4",
|
|
||||||
"output_options": [
|
"output_options": [
|
||||||
{
|
{
|
||||||
// Specifies the output file. There are several special values
|
// Specifies the output file. There are several special values
|
||||||
@@ -76,7 +74,7 @@
|
|||||||
// - syslog (logs to syslog)
|
// - syslog (logs to syslog)
|
||||||
// - syslog:name (logs to syslog using specified name)
|
// - syslog:name (logs to syslog using specified name)
|
||||||
// Any other value is considered a name of a time
|
// Any other value is considered a name of a time
|
||||||
"output": "@localstatedir@/log/kea-dhcp4.log"
|
"output": "@localstatedir@/log/kea-ddns.log"
|
||||||
|
|
||||||
// This governs whether the log output is flushed to disk after
|
// This governs whether the log output is flushed to disk after
|
||||||
// every write.
|
// every write.
|
||||||
@@ -98,39 +96,6 @@
|
|||||||
// 99 is most verbose. Be cautious, Kea can generate lots and lots
|
// 99 is most verbose. Be cautious, Kea can generate lots and lots
|
||||||
// of logs if told to do so.
|
// of logs if told to do so.
|
||||||
"debuglevel": 0
|
"debuglevel": 0
|
||||||
},
|
|
||||||
{
|
|
||||||
// This specifies the logging for kea-dhcp6 logger, i.e. all logs
|
|
||||||
// generated by Kea DHCPv6 server.
|
|
||||||
"name": "kea-dhcp6",
|
|
||||||
"output_options": [
|
|
||||||
{
|
|
||||||
"output": "@localstatedir@/log/kea-dhcp6.log"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"severity": "INFO",
|
|
||||||
"debuglevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
// This specifies the logging for D2 (DHCP-DDNS) daemon.
|
|
||||||
"name": "kea-dhcp-ddns",
|
|
||||||
"output_options": [
|
|
||||||
{
|
|
||||||
"output": "@localstatedir@/log/kea-ddns.log"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"severity": "INFO",
|
|
||||||
"debuglevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "kea-ctrl-agent",
|
|
||||||
"output_options": [
|
|
||||||
{
|
|
||||||
"output": "@localstatedir@/log/kea-ctrl-agent.log"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"severity": "INFO",
|
|
||||||
"debuglevel": 0
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -448,39 +448,6 @@
|
|||||||
// 99 is most verbose. Be cautious, Kea can generate lots and lots
|
// 99 is most verbose. Be cautious, Kea can generate lots and lots
|
||||||
// of logs if told to do so.
|
// of logs if told to do so.
|
||||||
"debuglevel": 0
|
"debuglevel": 0
|
||||||
},
|
|
||||||
{
|
|
||||||
// This specifies the logging for kea-dhcp6 logger, i.e. all logs
|
|
||||||
// generated by Kea DHCPv6 server.
|
|
||||||
"name": "kea-dhcp6",
|
|
||||||
"output_options": [
|
|
||||||
{
|
|
||||||
"output": "@localstatedir@/log/kea-dhcp6.log"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"severity": "INFO",
|
|
||||||
"debuglevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
// This specifies the logging for D2 (DHCP-DDNS) daemon.
|
|
||||||
"name": "kea-dhcp-ddns",
|
|
||||||
"output_options": [
|
|
||||||
{
|
|
||||||
"output": "@localstatedir@/log/kea-ddns.log"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"severity": "INFO",
|
|
||||||
"debuglevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "kea-ctrl-agent",
|
|
||||||
"output_options": [
|
|
||||||
{
|
|
||||||
"output": "@localstatedir@/log/kea-ctrl-agent.log"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"severity": "INFO",
|
|
||||||
"debuglevel": 0
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -340,10 +340,9 @@
|
|||||||
{
|
{
|
||||||
"loggers": [
|
"loggers": [
|
||||||
{
|
{
|
||||||
// This section affects kea-dhcp4, which is the base logger for DHCPv4
|
// This specifies the logging for kea-dhcp6 logger, i.e. all logs
|
||||||
// component. It tells DHCPv4 server to write all log messages (on
|
// generated by Kea DHCPv6 server.
|
||||||
// severity INFO or more) to a file.
|
"name": "kea-dhcp6",
|
||||||
"name": "kea-dhcp4",
|
|
||||||
"output_options": [
|
"output_options": [
|
||||||
{
|
{
|
||||||
// Specifies the output file. There are several special values
|
// Specifies the output file. There are several special values
|
||||||
@@ -353,7 +352,7 @@
|
|||||||
// - syslog (logs to syslog)
|
// - syslog (logs to syslog)
|
||||||
// - syslog:name (logs to syslog using specified name)
|
// - syslog:name (logs to syslog using specified name)
|
||||||
// Any other value is considered a name of a time
|
// Any other value is considered a name of a time
|
||||||
"output": "@localstatedir@/log/kea-dhcp4.log"
|
"output": "@localstatedir@/log/kea-dhcp6.log"
|
||||||
|
|
||||||
// This governs whether the log output is flushed to disk after
|
// This governs whether the log output is flushed to disk after
|
||||||
// every write.
|
// every write.
|
||||||
@@ -375,39 +374,6 @@
|
|||||||
// 99 is most verbose. Be cautious, Kea can generate lots and lots
|
// 99 is most verbose. Be cautious, Kea can generate lots and lots
|
||||||
// of logs if told to do so.
|
// of logs if told to do so.
|
||||||
"debuglevel": 0
|
"debuglevel": 0
|
||||||
},
|
|
||||||
{
|
|
||||||
// This specifies the logging for kea-dhcp6 logger, i.e. all logs
|
|
||||||
// generated by Kea DHCPv6 server.
|
|
||||||
"name": "kea-dhcp6",
|
|
||||||
"output_options": [
|
|
||||||
{
|
|
||||||
"output": "@localstatedir@/log/kea-dhcp6.log"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"severity": "INFO",
|
|
||||||
"debuglevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
// This specifies the logging for D2 (DHCP-DDNS) daemon.
|
|
||||||
"name": "kea-dhcp-ddns",
|
|
||||||
"output_options": [
|
|
||||||
{
|
|
||||||
"output": "@localstatedir@/log/kea-ddns.log"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"severity": "INFO",
|
|
||||||
"debuglevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "kea-ctrl-agent",
|
|
||||||
"output_options": [
|
|
||||||
{
|
|
||||||
"output": "@localstatedir@/log/kea-ctrl-agent.log"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"severity": "INFO",
|
|
||||||
"debuglevel": 0
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user