-
Notifications
You must be signed in to change notification settings - Fork 218
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
s3_object_key_format without index overwrites (not append) log files #435
Comments
I have moved the issue here because it is about |
You can make out_s3 to upload files once a day. |
Fluentd is already configured to upload logs to MinIO once per day. I attached config in the description.
Anyway I get more than one file per day often. Their time difference is no more than two minutes (much less than 10m). |
Hmm,
|
Size of log files ~ 200-300 bytes. It's much less than 256m. |
Then, please try removing - <buffer tag,time>
+ <buffer time> |
To be honest I tested both variants before creation this request. Thank you for trying to help! |
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days |
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days |
@arepusb |
Describe the bug
Hello there!
I use fluentd v1.16 and fluent-plugin-s3 and according my configuration it should send logs from few files to MinIO once per day.
Hers is the configuration:
I noticed that fluent-plugin-s3 often creates on MinIO more than one file per day.
Example,
projectname-202401240532_3.gz
projectname-202401240532_2.gz
projectname-202401240532_1.gz
projectname-202401240532_0.gz
I would like to have single log file on MinIO per day.
To achieve this goal I tried to play with s3_object_key_format property.
default value = %{path}%{time_slice}_%{index}.%{file_extension}
I changed it to %{path}%{time_slice}.%{file_extension}. As result I lost part of the logs. Looks like target log file was overwritten few times and I saw only data from the latest iteration.
How to force fluent-plugin-s3 to create only single file on MinIO when timekey condition has been met (and not lose data)?
To Reproduce
Use provided configuration and check the logs on MinIO.
Expected behavior
Would be great if information in the log file will be appended instead overwriting.
Your Environment
Your Configuration
Your Error Log
Additional context
No response
The text was updated successfully, but these errors were encountered: