cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

henk_stobbe
DynaMight Leader
DynaMight Leader

Hello all,

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

 

henk_stobbe_0-1740737370174.png

KR  Henk

3 REPLIES 3

KeeganNelson
Dynatrace Advisor
Dynatrace Advisor

Hi Henk! 

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

KeeganNelson_0-1740770014140.png

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)

Observability Engineer at FreedomPay

Featured Posts