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

Support nanosecond (epoch nano) timestamp #9

Closed
dannyk81 opened this issue Feb 1, 2018 · 6 comments
Closed

Support nanosecond (epoch nano) timestamp #9

dannyk81 opened this issue Feb 1, 2018 · 6 comments

Comments

@dannyk81
Copy link

dannyk81 commented Feb 1, 2018

Since fluentd supports nanosecond timestamp, could we extend this plugin to support epoch nano as well?

We have one source that currently set timestamp field to epoch nano, so at the moment we need to do a transformation to millisecs, would be nice if the plugin supported it out-of-the-box.

@cosmo0920
Copy link
Contributor

Currently, Elsaticsearch does not handle micro and nano-second precision.
But I think that it's worth handling micro or nano or pico or etc. precision timestamp.

@cosmo0920
Copy link
Contributor

See: elastic/elasticsearch#10005

@dannyk81
Copy link
Author

dannyk81 commented Feb 2, 2018

I agree, Elasticsearch only handles millsecs but the plugin doesn't handles the cases where the timestamp key in the record is provided in nanoseconds.

We could simply convert the epoch nano to epoch milli and create the @timestamp from that, wdyt?

@dannyk81
Copy link
Author

dannyk81 commented Feb 2, 2018

Actually, it should handle microseconds and nanoseconds (as well as seconds and millisecs)

@ecwws
Copy link
Owner

ecwws commented Feb 5, 2018

fixed as of 0.2.6

@ecwws ecwws closed this as completed Feb 5, 2018
@dannyk81
Copy link
Author

dannyk81 commented Feb 5, 2018

@ecwws @cosmo0920 thank you! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants