Skip to content
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

Timestamp precision is not clamped to 6 digits #10

Open
StrongestNumber9 opened this issue Dec 4, 2024 · 0 comments
Open

Timestamp precision is not clamped to 6 digits #10

StrongestNumber9 opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@StrongestNumber9
Copy link

StrongestNumber9 commented Dec 4, 2024

Describe the bug

Using too precise timestamps for event makes it malformed as spec only allows up to 6 digits

Expected behavior

https://www.rfc-editor.org/rfc/rfc5424.html#section-6 RFC5424 says TIME-SECFRAC = "." 1*6DIGIT

How to reproduce

Use too precise timestamps with more than 6 digits of fractions, for example using Instant.now()

Screenshots

Software version

1.0.1

Desktop (please complete the following information if relevant):

  • OS:
  • Browser:
  • Version:

Additional context

@StrongestNumber9 StrongestNumber9 added the bug Something isn't working label Dec 4, 2024
kortemik added a commit to teragrep/jla_01 that referenced this issue Dec 4, 2024
* use timestamp.toEpochMilli() instead of Instant to avoid teragrep/rlo_14#10

* test that timestamp matches to an expected pattern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant