splitting messages based on content #1364
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @madalina2311 yeah that should be possible with interpolation functions on the path field (https://www.benthos.dev/docs/components/outputs/gcp_cloud_storage#path): You'd need to group the messages by the target folder before archiving them into the final file format, it'd look something like this: output:
gcp_cloud_storage:
bucket: foo
path: ${! meta("dir") }/${! uuid_v4() }.jsonl
max_in_flight: 64
batching:
count: 1000
processors:
- group_by_value:
value: ${! this.foo }
- bloblang: 'meta dir = this.foo'
- archive:
format: lines |
Beta Was this translation helpful? Give feedback.
Hey @madalina2311 yeah that should be possible with interpolation functions on the path field (https://www.benthos.dev/docs/components/outputs/gcp_cloud_storage#path):
You'd need to group the messages by the target folder before archiving them into the final file format, it'd look something like this: