How to Use Filters:
To apply filters, specify the filter_function configuration option when creating a stream using the Streams REST API. Define your custom filter function to match specific criteria or patterns according to your requirements.
A filter_function is an optional configuration for your stream.
Named main, this function modifies the data out of the stream before it's sent to its destination, giving you precise control over the data you receive.