-
Notifications
You must be signed in to change notification settings - Fork 310
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
configurable sub-second precision with no time key #249
configurable sub-second precision with no time key #249
Conversation
For input plugins that do not provide a time key as part of the record but do provide a `time` to the router, allow the degree of sub-second time precision to be configurable. Some sources (such as AWS CloudWatch) may provide an accurate time source but do not include a time portion for an otherwise free-form record: there is nothing to parse. In this case the casting of a `DateTime` to a `String` loses any sub-second precision.
Hi! Is there anything I can do to help expedite this PR? |
@sampointer how do you think this compares to #223? |
They're solving two different problems. #223 is basically doing "fluentd API change stuff" for plugins, which basically amounts to moving some stuff around in the class hierarchy. fluentd have stuffed semver for their plugin API: fluent/fluentd#1449 This fixes a specific bug (and it is a bug) with a type cast losing time granularity in a specific situation. They should both be merged. |
@sampointer thanks for your explanation, I was just curious due to a specific similarity between your pull and #223 -
Anyway, regarding getting this merged; @gihad 's comment on #250 explains that there is unfortunately no active maintainer at this time. |
@sampointer I took a look at this PR - seems backwards compatible and everything looks good to me. Thanks for the contribution. Regarding #223, does it looks good to you? I haven't looked in depth yet and I noticed there might be an outstanding question. I will merge this one. |
@gihad thanks for merging this one. I notice that https://rubygems.org/gems/fluent-plugin-elasticsearch is still only showing 1.9.3 and not the two newer versions. Is that something you can resolve? EDIT - @pitr helped out and published the newer versions. |
This will fix: - fluent-binlog-reader (fluent/fluentd@155ceac) - ms timestamp resolution for cloudwatch (uken/fluent-plugin-elasticsearch#249)
For input plugins that do not provide a time key as part of the
record but do provide a
time
to the router, allow the degreeof sub-second time precision to be configurable.
Some sources (such as AWS CloudWatch) may provide an accurate time
source but do not include a time portion for an otherwise free-form
record: there is nothing to parse.
In this case the casting of a
DateTime
to aString
loses anysub-second precision.
(check all that apply)
version
in gemspec are untouchedelasticsearch_dynamic
(not required but recommended)