Skip to content

problem with dynamic bucket creation. #354

@mrmassis

Description

@mrmassis

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions