<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:10.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.E-mailStijl19
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="NL-BE" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">I have moved the logs to the /var/log/kea subdir instead of /var/log and logrotate started working, must have been permission related, the subdir is owned by user kea<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">Kristof<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">Van:
</span></b><span style="font-size:12.0pt;color:black">Kea-users <kea-users-bounces@lists.isc.org> namens Darren Ankney <darren.ankney@gmail.com><br>
<b>Datum: </b>zondag, 23 juni 2024 om 12:38<br>
<b>Aan: </b>Kea user's list <kea-users@lists.isc.org><br>
<b>Onderwerp: </b>Re: [Kea-users] Kea dhcp log rotate<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hi Kristof,<br>
<br>
I do not see a problem with your log configuration. I have not heard<br>
of any problems with log rotation in 2.4.1.  You might have a look<br>
through your system logs and check if, perhaps, SELinux is getting in<br>
the way of new file creation in that directory.  Also, you might check<br>
permissions on /var/log/ to make sure that the user kea is running as<br>
is permitted to write there.  Lastly, there might be something logged<br>
in /var/log/kea-dhcp4.log about the failed rotation.<br>
<br>
Thank you,<br>
Darren Ankney<br>
<br>
On Fri, Jun 21, 2024 at 6:02</span><span style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span style="font-size:11.0pt">AM Kristof Van Doorsselaere via Kea-users<br>
<kea-users@lists.isc.org> wrote:<br>
><br>
> Dear All,<br>
><br>
><br>
><br>
> We are running kea 2.4.1 in our production network (University college).<br>
><br>
><br>
><br>
> In the kea dhcpv4 config I have setup below loggers:<br>
><br>
><br>
><br>
> "loggers": [<br>
><br>
>       {<br>
><br>
>         "debuglevel": 0,<br>
><br>
>         "name": "kea-dhcp4",<br>
><br>
>         "output_options": [<br>
><br>
>           {<br>
><br>
>             "flush": false,<br>
><br>
>             "maxsize": 10240000,<br>
><br>
>             "maxver": 8,<br>
><br>
>             "output": "/var/log/kea-dhcp4.log",<br>
><br>
>             "pattern": "%d{%j %H:%M:%S.%q} %c %m\n"<br>
><br>
>           }<br>
><br>
>         ],<br>
><br>
>         "severity": "INFO"<br>
><br>
>       },<br>
><br>
>       {<br>
><br>
>         "debuglevel": 0,<br>
><br>
>         "name": "kea-dhcp4.bad-packets",<br>
><br>
>         "output_options": [<br>
><br>
>           {<br>
><br>
>             "flush": true,<br>
><br>
>             "maxsize": 10240000,<br>
><br>
>             "maxver": 8,<br>
><br>
>             "output": "/var/log/kea-dhcp4-debug.log",<br>
><br>
>             "pattern": "%d{%j %H:%M:%S.%q} %c %m\n"<br>
><br>
>           }<br>
><br>
>         ],<br>
><br>
>         "severity": "ERROR"<br>
><br>
>       }<br>
><br>
>     ],<br>
><br>
><br>
><br>
> Kea is running on a redhat 8.9<br>
><br>
><br>
><br>
> For some reason the old logs are not preserved when they get rotated, only 1 log file is available at any time (latest)<br>
><br>
><br>
><br>
> Anyone experience a similar problem?<br>
><br>
><br>
><br>
> Thanks in advance,<br>
><br>
> Kristof<br>
><br>
> --<br>
> ISC funds the development of this software with paid support subscriptions. Contact us at
<a href="https://www.isc.org/contact/">https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.isc.org%2Fcontact%2F&data=05%7C02%7Ckristof.vandoorsselaere%40hogent.be%7C18846343e6c84bc0229c08dc93709d2f%7C5cf7310e091a4bc5acd726c721d4cccd%7C1%7C0%7C638547359082366787%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=U2rKFFqR0OJ%2FfJdB0YrBCK0RYHvkaKBCHaBhqmAneTs%3D&reserved=0</a>
 for more information.<br>
><br>
> To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users">
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=05%7C02%7Ckristof.vandoorsselaere%40hogent.be%7C18846343e6c84bc0229c08dc93709d2f%7C5cf7310e091a4bc5acd726c721d4cccd%7C1%7C0%7C638547359082377762%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=OdIkrIjzCzE%2Fq9tK18y7d0m8wXdcMq1egELHamNq9Mo%3D&reserved=0</a>.<br>
><br>
> Kea-users mailing list<br>
> Kea-users@lists.isc.org<br>
> <a href="https://lists.isc.org/mailman/listinfo/kea-users">https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=05%7C02%7Ckristof.vandoorsselaere%40hogent.be%7C18846343e6c84bc0229c08dc93709d2f%7C5cf7310e091a4bc5acd726c721d4cccd%7C1%7C0%7C638547359082384486%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=zQpFUr7lkIlOB9HsYx4Dpa95Et2FikdNYc3VtuF1phc%3D&reserved=0</a><br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at
<a href="https://www.isc.org/contact/">https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.isc.org%2Fcontact%2F&data=05%7C02%7Ckristof.vandoorsselaere%40hogent.be%7C18846343e6c84bc0229c08dc93709d2f%7C5cf7310e091a4bc5acd726c721d4cccd%7C1%7C0%7C638547359082389134%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=uNBJq%2Bxwgnju7wozPTs%2FIuSGmHc0KgcsykynmYPxroM%3D&reserved=0</a>
 for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users">https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=05%7C02%7Ckristof.vandoorsselaere%40hogent.be%7C18846343e6c84bc0229c08dc93709d2f%7C5cf7310e091a4bc5acd726c721d4cccd%7C1%7C0%7C638547359082393348%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=x0F%2Faxy3Jri0Y5uyL%2FoJ1AlHRNAjzhdQ5ANJDEaXtGw%3D&reserved=0</a>.<br>
<br>
Kea-users mailing list<br>
Kea-users@lists.isc.org<br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users">https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=05%7C02%7Ckristof.vandoorsselaere%40hogent.be%7C18846343e6c84bc0229c08dc93709d2f%7C5cf7310e091a4bc5acd726c721d4cccd%7C1%7C0%7C638547359082397439%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=mfhfgl3sk7f4vvdQ%2FVC0twCF15%2FRqRt1UJV3vUWuoh8%3D&reserved=0</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>