How to drop messages with complex conditions (not really)

Hi Im trying to use fluentd for kubernetes. I want to forward logs from all containers. But for some specific containers and want to only include some messages. Ive read all the rewrite* and grep docs but I just can’t figure out how to do this. Please help.