Based on suggested found
https://github.com/fluent/fluentd/issues/1110, with multiple workers,
<system>
workers 2
</system>
<match debug>
@id s3debug
@type copy
<store>
@id bqdebug
@type bigquery
#------> file buffer
</store>
<store>
@id s3debug
@type s3
#------> file buffer
</store>
</match>
I ideally want to use file buffer with it, but somehow when I put following block for S3 store,
<buffer tag,time>
@type "file"
path "/tmp/s3.*.buffer"
timekey 15m
timekey_use_utc true
chunk_limit_size 1m
</buffer>
does not work. :'(
2021-04-30 04:13:02 +0000 [error]: #0 [s3debug] file buffer with multi workers should be configured to use directory 'path', or system root_dir and plugin id
2021-04-30 04:13:02 +0000 [error]: #0 config error file="/fluentd/etc/fluent.conf" error_class=Fluent::ConfigError error="Plugin 'file' does not support multi workers configuration (Fluent::Plugin::FileBuffer)"
I would appreciate any help.