[Kea-users] HA with kea-dhcp4: beginner questions
Stefan G. Weichinger
lists at xunil.at
Thu Nov 24 09:14:56 UTC 2022
Am 23.11.22 um 16:38 schrieb Stefan G. Weichinger:
> Am 23.11.22 um 16:12 schrieb Darren Ankney:
>> I just noticed your date/time pattern: %d{%j %H:%M:%S.%q} %c %m You
>> might want to change to %D{%Y-%m-%d %H:%M:%S.%q %Z} %-5p [%c/%i.%t]
>> %m (or at least capitalize the %D as I think the content in {} is a
>> description of the output you want from %D). You can also add a %Z in
>> the format message to show a timezone, I believe.
>
> Great, thanks.
>
> For the records: "\n" was missing at the end of the pattern, now I have:
>
> "pattern": "%D{%Y-%m-%d %H:%M:%S.%q %Z} %-5p [%c/%i.%t] %m\n"
>
> which gives me lines like
>
> 2022-11-23 16:37:24.969 CET INFO
> [kea-dhcp4.commands/9735.139746039145152] COMMAND_RECEIVED Received
> command 'stat-lease4-get'
>
> where the timestamp is matching "my" time. perfect, thanks!
Aside from the logs:
no problems since yesterday. I think I won't be able to find the reason
for that outage anymore.
More information about the Kea-users
mailing list