-
Notifications
You must be signed in to change notification settings - Fork 7
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
Use Time.at(time) instead of Time.now for fallback #8
Comments
Because msgpack cannot handle |
Thanks @cosmo0920, I'm probably missing something, but can't we use this:
Here's the full snippet (lines 48 - 52):
The filter should have access to |
Within |
Yes I uderstand, but I'm not proposing to modify the
This should work isn't it? |
For practical purposes, the difference between event time and the time obtained using Time.now are probably negligible. However, the point you brought up, using Let me test a couple things out, then I'll have it fixed up. |
Thanks @ecwws 😄 In our deployment, we are using this plugin on the aggregation fluentd nodes, before sending the events to Elasticsearch. We try to keep our fluentd forwarders configuration as basic/simple as possible. In this kind of setup, since the forwarders have a flush interval of 5 seconds, using |
@ecwws any luck with this? |
@ecwws ping 😄 |
@dannyk81 sorry, work suddenly got really really busy, I'm going to try to figure this out tonight |
@dannyk81 sorry it took long, 0.2.8 should be using the event time instead of Time.now for added timestamp |
I'm curious why not use
Time.at(time)
in the fallback option instead ofTime.now
, herefluent-plugin-elasticsearch-timestamp-check/lib/fluent/plugin/filter_elasticsearch_timestamp_check.rb
Line 50 in 00ca651
AFAIU, every event that is ingested in fluntd has an internal
time
key, either extracted from the event record (using formatting/parsing) or by using the time when it was ingested, since the event can travel through the pipeline, by the time it reaches this pluginTime.now
doesn't represent the actual ingestion time of the event.Any thoughts? @ecwws @cosmo0920
The text was updated successfully, but these errors were encountered: