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

Kind regards,
Kristof

Van: Kea-users <[email protected]> namens Darren Ankney 
<[email protected]>
Datum: zondag, 23 juni 2024 om 12:38
Aan: Kea user's list <[email protected]>
Onderwerp: Re: [Kea-users] Kea dhcp log rotate
Hi Kristof,

I do not see a problem with your log configuration. I have not heard
of any problems with log rotation in 2.4.1.  You might have a look
through your system logs and check if, perhaps, SELinux is getting in
the way of new file creation in that directory.  Also, you might check
permissions on /var/log/ to make sure that the user kea is running as
is permitted to write there.  Lastly, there might be something logged
in /var/log/kea-dhcp4.log about the failed rotation.

Thank you,
Darren Ankney

On Fri, Jun 21, 2024 at 6:02 AM Kristof Van Doorsselaere via Kea-users
<[email protected]> wrote:
>
> Dear All,
>
>
>
> We are running kea 2.4.1 in our production network (University college).
>
>
>
> In the kea dhcpv4 config I have setup below loggers:
>
>
>
> "loggers": [
>
>       {
>
>         "debuglevel": 0,
>
>         "name": "kea-dhcp4",
>
>         "output_options": [
>
>           {
>
>             "flush": false,
>
>             "maxsize": 10240000,
>
>             "maxver": 8,
>
>             "output": "/var/log/kea-dhcp4.log",
>
>             "pattern": "%d{%j %H:%M:%S.%q} %c %m\n"
>
>           }
>
>         ],
>
>         "severity": "INFO"
>
>       },
>
>       {
>
>         "debuglevel": 0,
>
>         "name": "kea-dhcp4.bad-packets",
>
>         "output_options": [
>
>           {
>
>             "flush": true,
>
>             "maxsize": 10240000,
>
>             "maxver": 8,
>
>             "output": "/var/log/kea-dhcp4-debug.log",
>
>             "pattern": "%d{%j %H:%M:%S.%q} %c %m\n"
>
>           }
>
>         ],
>
>         "severity": "ERROR"
>
>       }
>
>     ],
>
>
>
> Kea is running on a redhat 8.9
>
>
>
> For some reason the old logs are not preserved when they get rotated, only 1 
> log file is available at any time (latest)
>
>
>
> Anyone experience a similar problem?
>
>
>
> Thanks in advance,
>
> Kristof
>
> --
> ISC funds the development of this software with paid support subscriptions. 
> Contact us at 
> 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<https://www.isc.org/contact/>
>  for more information.
>
> To unsubscribe visit 
> 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<https://lists.isc.org/mailman/listinfo/kea-users>.
>
> Kea-users mailing list
> [email protected]
> 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<https://lists.isc.org/mailman/listinfo/kea-users>
--
ISC funds the development of this software with paid support subscriptions. 
Contact us at 
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<https://www.isc.org/contact/>
 for more information.

To unsubscribe visit 
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<https://lists.isc.org/mailman/listinfo/kea-users>.

Kea-users mailing list
[email protected]
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<https://lists.isc.org/mailman/listinfo/kea-users>
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to