Executes a Bloblang mapping on messages.
Bloblang is a powerful language that enables a wide range of mapping, transformation and filtering tasks. For more information check out the docs.
Bloblang mappings can fail, in which case the message remains unchanged, errors are logged, and the message is flagged as having failed, allowing you to use standard processor error handling patterns.
However, Bloblang itself also provides powerful ways of ensuring your mappings do not fail by specifying desired fallback behaviour, which you can read about in this section.
Given JSON documents containing an array of fans:
We can reduce the fans to only those with an obsession score above 0.5 with this mapping:
Bloblang can be used to parse some basic CSV files, given files of the following format:
We can write a parser that does cool things like calculating the sum of each line:
To give an output like this: