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