fluent / fluent-plugin-s3

Amazon S3 input and output plugin for Fluentd
https://docs.fluentd.org/output/s3
314 stars 218 forks source link

problem with dynamic bucket creation. #354

Open mrmassis opened 4 years ago

mrmassis commented 4 years ago

Hi everyone, Is possible set the bucket name with the name of a record field, or tag? Example

<filter logs.**>
  @type record_transformer
  enable_ruby true
  auto_typecast true
  <record>
    tenant ${record["attrs"]["tag"].split('|')[1]}
  </record>
</filter>
(...)
<match **>
  @type copy

  <store>
    @type s3
   (...)
    s3_bucket   ${record["tenant"]}
(...)

I receved logs from diferents tenants and wish put each one in a bucket. Tkz in advance!

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days

kenhys commented 3 years ago

Related to : #360, #363

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days