-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Firehose & Kinesis Output plugin: time_key does not have milliseconds. #2831
Comments
The code also uses To support milliseconds you have to build a shim on top of strftime. I vaguely remember that some part of fluent bit supports millisecond format specifiers, I think it was |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
This issue was closed because it has been stalled for 5 days with no activity. |
Marking as enhancement so it won't keep getting closed |
This should be implemented in both kinesis_firehose and kinesis_streams when we get around to it |
I'm working on this part, hopefully nanoseconds and milliseconds can be implemented for time_key by the end of this month. |
@Claych are we done with this one? |
This will be added to aws-for-fluent-bit version 2.31.0, cherrypicked on top of Fluent Bit version 1.9.10. Please see: #6486 |
@matthewfala looks like this can be closed (although I think you linked a different PR above, which is for out_s3) - but see #7538 which describes a bug in the sub-second formatting (printf format string needs a leading-zeros specifier like |
@hackery Thanks, I have opened a new issue for the leading zero bug fix: aws/aws-for-fluent-bit#740 |
Bug Report
Describe the bug
When I use firehose output plugin.
time_key
does not have milliseconds , only seconds resolution.time_key
records is like the below.To Reproduce
Expected behavior
The
time_key
should have milliseconds resolution."@timestamp":"2020-12-04T06:16:04.789"
Screenshots
Your Environment
Additional context
we use firehose as logging architecture.
I think
struct tm
does not support milliseconds resolution.This code uses
struct tm
.https://github.com/fluent/fluent-bit/blob/master/plugins/out_kinesis_firehose/firehose_api.c#L233
The text was updated successfully, but these errors were encountered: