github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/processors/for_each.md (about) 1 --- 2 title: for_each 3 type: processor 4 status: stable 5 categories: ["Composition"] 6 --- 7 8 <!-- 9 THIS FILE IS AUTOGENERATED! 10 11 To make changes please edit the contents of: 12 lib/processor/for_each.go 13 --> 14 15 import Tabs from '@theme/Tabs'; 16 import TabItem from '@theme/TabItem'; 17 18 19 A processor that applies a list of child processors to messages of a batch as 20 though they were each a batch of one message. 21 22 ```yaml 23 # Config fields, showing default values 24 label: "" 25 for_each: [] 26 ``` 27 28 This is useful for forcing batch wide processors such as 29 [`dedupe`](/docs/components/processors/dedupe) or interpolations such 30 as the `value` field of the `metadata` processor to execute 31 on individual message parts of a batch instead. 32 33 Please note that most processors already process per message of a batch, and 34 this processor is not needed in those cases. 35 36