Ignore logs with annotations

Is there a way to whitelist or blacklist logs from pods using a annotation? I’m using the global logger connected to Elasticsearch, and there are some pod logs I don’t want to send.