[Kea-users] Kea dhcp log rotate

Darren Ankney darren.ankney at gmail.com
Sun Jun 23 10:38:03 UTC 2024


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
<kea-users at lists.isc.org> 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://www.isc.org/contact/ for more information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users


More information about the Kea-users mailing list