Nice to know )-; using "contains as a matcher"

Hello all,

So I can use “contains” in a dql filter but not as a matcher when creating a log-metric:

KR  Henk

Hi Henk!

I think the equivalent of this would be using matchesPhrase. DOCS.

Hope this helps!

matchesPhrase is a case-insensitive contains, so you are 90% right (-;

matchesPhrase does have some special character limitations as well, but you can use the caseSensitive flag on matchesPhrase to make it case sensitive if you want

matchesPhrase(content, “test”, caseSensitive:true)