<div dir="ltr">Folks,<div><br></div><div>It appears that there are some discrepancies between the documentation (<a href="http://kea.isc.org/docs/kea-guide.html#logging">http://kea.isc.org/docs/kea-guide.html#logging</a>) and the actual way the logging works in Kea.</div><div><br></div><div>I have been attempting to split off logging of kea-dhcp6 to a separate log file.  I have encountered some problems:</div><div><br></div><div>According to the documentation, the facility used is local0  by default.  It doesn't seem to be.  The facility as seen by rsyslog on CentOS 7 is user.</div><div><br></div><div>Further, there appears to be no way to change the facility.  The documentation claims that you can use the <font color="#333333" face="arialmt, verdana, arial, helvetica, sans-serif"><span style="font-size:14px">KEA_LOGGER_DESTINATION=</span></font><span style="color:rgb(51,51,51);font-family:arialmt,verdana,arial,helvetica,sans-serif;font-size:14px">syslog[</span><span class="gmail-optional" style="color:rgb(51,51,51);font-family:arialmt,verdana,arial,helvetica,sans-serif;font-size:14px">:<em class="gmail-replaceable"><code>fac</code></em></span><span style="color:rgb(51,51,51);font-family:arialmt,verdana,arial,helvetica,sans-serif;font-size:14px">]</span><span style="font-size:14px;color:rgb(51,51,51);font-family:arialmt,verdana,arial,helvetica,sans-serif"> environment variable to change the facility.  This variable appears to only changes the name of the daemon that did the logging.  This is the same behavior that the </span><font color="#333333" face="arialmt, verdana, arial, helvetica, sans-serif"><span style="font-size:14px">output_options under Logging{} does.  </span></font></div><div><font color="#333333" face="arialmt, verdana, arial, helvetica, sans-serif"><span style="font-size:14px"><br></span></font></div><div><font color="#333333" face="arialmt, verdana, arial, helvetica, sans-serif"><span style="font-size:14px">In order to successfully have good control over logging while using syslog, we will need to have access to changing the facility so that we can make it anything local0-local7.  That way we can setup specific log files for certain aspects of the Kea DHCP server.  </span></font></div><div><font color="#333333" face="arialmt, verdana, arial, helvetica, sans-serif"><span style="font-size:14px"><br></span></font></div><div><font color="#333333" face="arialmt, verdana, arial, helvetica, sans-serif"><span style="font-size:14px">I am aware that with rsyslog, I can setup matches for names where I could send all logs that contain "kea", for example, to a specific file.  Not all systems I manage run rsyslog, however, as some run sysklogd where this is not possible.</span></font></div><div><font color="#333333" face="arialmt, verdana, arial, helvetica, sans-serif"><span style="font-size:14px"><br></span></font></div><div><font color="#333333" face="arialmt, verdana, arial, helvetica, sans-serif"><span style="font-size:14px">Is it on your radar to expose the ability to change the logging facility in Kea in the future?</span></font></div></div>