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

Milliseconds in timestamp is not preserved when setting nanosecond_precision as true #31

Open
sivaram-vu opened this issue May 9, 2023 · 0 comments
Labels

Comments

@sivaram-vu
Copy link

Logstash version: docker image - logstash:8.6.2

input {
    tcp {
        codec => fluent {
          nanosecond_precision => true
        }
        port => 4000
    }

  #  http {
  #      codec => fluent
  #      port => 4000
  #  }

}

output {
  stdout { codec => json }
  stdout { codec => rubydebug }
}

When fluend message has timestamp with Nano second precision like "2023-05-09T09:39:45.724585Z", This plugin is preserving the nano seconds and printing the timestamp correctly with nano seconds.

When fluend message has timestamp with Milli second precision like "2023-05-09T09:39:45.724Z", This plugin is not preserving the Milli seconds and printing the timestamp as "2023-05-09T09:39:45.000Z".

@sivaram-vu sivaram-vu added the bug label May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant