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

How to do this ? "fixext or ext(with length 8)" #65

Open
linxuanwei opened this issue Mar 2, 2017 · 1 comment
Open

How to do this ? "fixext or ext(with length 8)" #65

linxuanwei opened this issue Mar 2, 2017 · 1 comment

Comments

@linxuanwei
Copy link

qq20170302-180957 2x

@kawanet
Copy link
Owner

kawanet commented Mar 2, 2017

EventTime is a private ext format defined on the fluentd protocol spec:
https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v0

I am the author of the draft version of the spec:
https://gist.github.com/kawanet/078e274952638fd53150

To send a Date from JavaScript to fluentd server, I may prefer to use float 64 type instead of EventTime ext type. float 64 has enough precision to JavaScript's Date class which has only microsecond precision but not cover nanosecond precision. Most of fluentd server and plugins would accept float as a time format. This is not documented, however.

To receive a EventTime data sent from other fluentd client, we need to call addExtUnpacker() method to parse it.

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

2 participants