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
pack: added java_sql_timestamp, a format string used by amazon athena #4811
Conversation
This commit adds a new timestamp format, the java_sql_timestamp, which is very similar to iso8601, except that it has a space instead of a T between the date and the hour and does not end with Z (or any other timestamp delimiter) This is the format: "%Y-%m-%d %H:%M:%S" This is unfortunatelly the only format accepted by Amazon Athena. Signed-off-by: Marcos Diez <marcos@unitron.com.br>
Signed-off-by: Marcos Diez <marcos@unitron.com.br>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marcosdiez Thank you, this looks useful
pls help with #4131 |
Thank you so much! This is exactly what I'm looking for. When is the next release? |
@Spritekin I've been using my branch in prod without issues: |
I tested your image, changed the pod definition to use it and it loaded:
Changed my configmap:
The container starts ok:
But now it won't write any logs to S3. So I went to the container logs:
You can see that "Input plugin 'systemd' cannot be loaded" message which doesn't exist when I run the previous 1.8.12 image:
Looks like there might be a problem in the build process for this version as this problem is mentioned in some old posts here: #1696 So I need to revert and I will have to wait for the official release. Thanks! |
Sorry, @Spritekin That being said, in your
That will save you a lot of money on both storage and athena processing fees |
No worries, thanks, will wait for the final release. I need to mention that compression gzip might not be working. I tried to send the gzip files to S3, but when downloading (in multiple ways) the content always came as plain text. Finally I connected with Athena and tried to un the query on the files, but when I used gzip source it throws an error, when I select plain text it runs ok. Suggests the files are not gzipped even when the option is on. Commented it all here: Regards, |
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
Documentation
fluent/fluent-bit-docs#708
Backporting
1.8: pack: added java_sql_timestamp, a format string used by amazon athena #4822
This PR will break #4131, but I can adopt it if this one gets merged before
Example Configuration snippet
Debug log output from testing the change
valgrind
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.