Question about customizing s3_object_key_format

147 views
Skip to first unread message

Carfield Yim

unread,
Oct 21, 2021, 3:15:25 AM10/21/21
to Fluentd Google Group
HI all

Currently the log archive in s3 with path like 

%{path}%{time_slice}_%{index}.%{file_extension}

But my boss like to change that to like

%{path}/%{year}/%{date}/%{file_name}_%{index}.%{file_extension}

like

path/2021/20211021/componet1_12.gz

Not sure if i can do something like 

%{path}/%{ time_slice}[0...3]/%{time_slice}[0...7]/%{file_name}_%{index}.%{file_extension}

Regards,

Carfield Yim

unread,
Oct 21, 2021, 7:18:36 PM10/21/21
to Fluentd Google Group
Hi all

Just aware of this " s3_object_key_format %{path}/events/%Y%m%d/${tag}_%{index}.%{file_extension}" at https://github.com/fluent/fluent-plugin-s3/blob/master/docs/output.md , all good now

Regards,
Reply all
Reply to author
Forward
0 new messages