Sagar Chauhan
10/08/2025, 6:20 AMSagar Chauhan
10/08/2025, 6:23 AM# S3 Output for traefik-v2 logs only
[OUTPUT]
Name s3
Match traefik.*
bucket mys3-fluentbit
region ap-south-1
store_dir /buffers/s3/
store_dir_limit_size 5G
total_file_size 50M
upload_timeout 5m
compression gzip
use_put_object Off
s3_key_format /ny-s3-s3-shipper/cluster=${CLUSTER_NAME}/app=traefik/date=%Y-%m-%d/traefik-%H-%M-%S-$UUID.gz
retry_limit 10
preserve_data_ordering On
Why is this configuration creating multiple small files of around 200–300 KB? When we add upload_chunk_size 100M and set total_file_size 200M, the file size increases to around 5–10 MB.
@PatSagar Chauhan
10/08/2025, 6:23 AMPat
10/08/2025, 8:42 AMUjjwal Sharma
10/08/2025, 1:22 PMPat
10/08/2025, 1:23 PMSagar Chauhan
10/08/2025, 1:30 PM@Sagar Chauhan Also, 50MB will be if the file size reaches 50 MB before the upload_timeout. Else, it will upload whatever it accumulated in 5 mins (your upload timeout)The issue is that it is not following this approach.
Sagar Chauhan
10/08/2025, 1:40 PM[OUTPUT]
Name s3
Match traefik.*
bucket mys3-fluentbit
region ap-south-1
store_dir /buffers/s3/
store_dir_limit_size 5G
total_file_size 200M
upload_timeout 5m
compression gzip
use_put_object Off
s3_key_format /fluentbit-unified-s3-shipper/cluster=${CLUSTER_NAME}/app=traefik/date=%Y-%m-%d/traefik-%H-%M-%S-$UUID.gz
retry_limit 10
preserve_data_ordering On
This is my current S3 output config, and the data it is dumping in S3 is 300K per file and that too very frequent.Sagar Chauhan
10/08/2025, 1:40 PMSagar Chauhan
10/08/2025, 1:48 PMuse_put_object Off , I changed it to On in stage. Let's wait.Sagar Chauhan
10/08/2025, 1:58 PMSagar Chauhan
10/08/2025, 1:59 PMSagar Chauhan
10/08/2025, 2:02 PM