‎27 Jun 2025 01:55 PM - edited ‎18 Jul 2025 10:57 AM
---------------------------
📖 Chapters 📖
00:00 Introduction
00:55 Boolean operators
01:28 Wildcards
02:06 Searching a specific field
-----------------------------
🔗 Additional Links
Find out more about the search command
Try out Dynatrace with a free trial
-----------------------------
Subscribe to our YT channel
Stay up-to-date with Dynatrace! Follow us on Facebook, Instagram, LinkedIn, Twitter, Twitch
‎18 Jul 2025 09:22 AM
Interesting video, thanks, one query.
How does
filter contains(content, "string")
and
search content ~ "string"
differ?
‎18 Jul 2025 10:45 AM
Hi Vishnu
Thanks for asking this question.
Filter with contain does the substring match. Meaning it will find records with content such as this:
This is matchwithsubstringcontent
because it has a value where there is a mention of string
The second command won't do that. The search command does a token based matching by default. It will filter only for specific cases of string. A comma or dash seperated string will result in final record.
For example, if the record has something like: `a string` or `this should match because-string`, it will be in the output.
search content ~ "*string*" is more close to your filter example.