NLnetLabs/unbound

[FR] log timestamps in ISO8601 format with timezone

Closed this issue · 2 comments

Current behavior
Is there a current behavior that the feature relates to?

Related to log output generated by:

unbound -d

It logs in timestamp format like:

[1727194783] unbound[265379:0] error: bind: address already in use

Describe the desired feature
I would like to see standard ISO timestamp format for output, including timezone.

2024-09-24T18:11:29.157+00:00 unbound[265379:0] error: bind: address already in use

Potential use-case

  • Adding timezone would greatly simplify correlating logs from different servers.
  • Maintaining custom parser is ... suboptimal.

Request in NSD to do the same: NLnetLabs/nsd#383

BTW Knot DNS uses the ISO format already.

The options log-time-ascii: yes and log-time-iso: yes produce ISO8601 timestamps in the log file. It is an option so that existing parsers keep working, but also can be simplified.

Thank you very much, this was fast like lightning!