> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of Scott Severtson
> Sent: Monday, December 10, 2012 5:28 PM
> To: rsyslog-users
> Subject: [rsyslog] Patch: RFC-3339 timezone parsing fixes
>
> Per RFC-3339, these timezones are legal:
> Z
> +06:00
> +0600
I need to check if that is legal in regard to the syslog RFCs as well (they
only support a subset). If not, it requires more work.
Rainer
> +06
>
> Unfortunately, the only format supported by Rsyslog is the first two.
>
> The spec includes the following ABNF constructs:
>
> time-numoffset = ("+" / "-") time-hour [[":"] time-minute]
> time-zone = "Z" / time-numoffset
>
> timeopt-hour = "-" / (time-hour [":"])
> timeopt-minute = "-" / (time-minute [":"])
>
>
> We have several log sources which omit the optional ":" separator in
> the
> timezone. We've developed the attached patch to improve Rsyslog's
> support for valid RFC-3339 timezones.
>
> One other minor fix in the patch - OffsetHour was originally declared
> as
> a "char" instead of an "int".
>
> --Scott
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.