Index | Thread | Search

From:
Mike <mmiller@mgm51.com>
Subject:
Re: patch for syslogd to enable option of ISO format in timestamps
To:
tech@openbsd.org
Date:
Wed, 9 Sep 2026 13:57:53 -0400

Download raw body.

Thread

On 9/8/2026 1:16 PM, Alexander Bluhm wrote:
> On Mon, Sep 07, 2026 at 06:37:41PM -0400, Mike wrote:
>>
>> Note that I enable the I option when the Z option is specified, for
>> backward compatibility.
> 
> The ISO time requires the +0200 suffix to specify the time zone.

RFC 5424 indicates that Z is OK for UTC.

ISO 8601 indicates that local time is presumed if no time zone is specified.


> Did you check what happens to the ISO time check when using remote
> logging?

It looks like the code (implementing the ISO format for the "-Z" option 
about 10 years ago) checks for "non-standard" timestamps and uses the 
default timestamp, if need be.



> Why do you need the feature?

As stated in RFC 5424...

"This is a sharp upgrade over the BSD timestamp, which has no year and 
no time zone, and it is why 5424 logs sort and correlate cleanly across 
machines. ..."

When I sort the logs, the month name at the beginning of the log record 
does not sort properly when multiple months are involved.

Thanks for your reply.