Text Match examples #1289
-
After reading the Falcon Query Language operators I was wondering how the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @mdhowle thanks for the question! The ~ (text match) operator: For example:
The !~ (does not text match) operator: For example: Compared to regular string equality (:): So you can use ~ when you need flexible text searching but use : when you need exact matching. Let us know with any questions! |
Beta Was this translation helpful? Give feedback.
Hi @mdhowle thanks for the question!
The ~ (text match) operator:
Performs fuzzy text matching
Ignores:
Case (upper/lower)
Spaces
Punctuation
For example:
hostname:~'lab machine'
would match:The !~ (does not text match) operator:
Works exactly like ~ but returns the opposite result
Returns true when the text does NOT match
For example:
hostname:!~'lab machine'
would match everything EXCEPT variations of "lab machine"Compared to regular string equality (:):
~ is more flexible for text searching
: requires exact matches including case and spacing
So you can use ~ when you need flexible text searching but use : when you need exact matching.
Let us…