I'm trying to filter out certain types of logs which contain a string message. The error is a log level error which consumes my all events view in kibana. I would like to not have this appear in kibana. I would also be open to changing the level to debug in place of dropping.

I've tried the following with no success:

Adding a filter to my conf.d file on my log server:

if "part of my string" in [msg] {
drop {}
}
if "part of other string" in [msg] {
drop {}
}