Filter for each output in multiple outputs

Hello,

I would like to send logs to multiple hosts in the output plugin of logstash. Is there a way I can filter logs for each output separately using the filter plugin?

Thanks in advance