-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC3339 timestamp that contains over 6 digit fractional part of seconds output binary data #5469
Comments
This is intended behaviour, see https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.3.1 Example 5. Syslog does not support a higher precision setting. |
Rainer Gerhards wrote:
This is intended behaviour, see
https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.3.1 Example 5.
Syslog does not support a higher precision setting.
This sort of mistake is common enough that I think it would be good to add an
option to support it (acceptNonStandardTimestamps, guessForNonRFCTimestamps, or
something to make it clear we're accepting things that don't match the RFC)
David Lang
|
Rsyslog (or RFC) specification is not a matter. If would not support wider precision, could you please truncate overflowed fractional digit or treat timestamp field as not timestamp?
Ignoring timestamp field is better than broken output (as a results, timestamp will be recieved time). |
@ztanakaz While I tend to agree with @davidelang that we should add a feature to support invalid precision values, you are pretty ignorant against standards. It might be that you do not care, but others rely on it. Especially as the spec says that too many precision digits mean the header is invalid. It's no longer the time where "best guess" is always good - many security issues relate to not following specs. |
Expected behavior
Output original precision, or truncate by spec, or treat timestamp field as msg
Actual behavior
Steps to reproduce the behavior
Environment
-- rsyslog version: 8.2312.0
-- platform: Ubuntu 24.04
-- for configuration questions/issues, include rsyslog.conf and included config files
-- rsyslog version: 8.24.0-55.el7
-- platform: CentOS 7.9.2009
The text was updated successfully, but these errors were encountered: