2015-06-25 04:28 PM
How can I query on something using "not contains "
how?
2015-06-26 08:41 AM
Hey Bechara3,
Try the below syntax in an advanced query:
~(<meta-key> contains '<yourValue>')
For example, the below would query all users that DO NOT contain 'Lee':
~(user.dst contains 'Lee')
2015-06-25 10:34 PM
i've found regex is the easiest way to do a doesn't contains.
2015-06-26 08:41 AM
Hey Bechara3,
Try the below syntax in an advanced query:
~(<meta-key> contains '<yourValue>')
For example, the below would query all users that DO NOT contain 'Lee':
~(user.dst contains 'Lee')
2018-08-13 12:47 PM
does this work with reporting? i am trying to use it, but keeps giving me 'invalid expression' error
2018-08-13 01:23 PM
Try using the following syntax:
not(<meta_key> contains <meta_value>)
e.g.:
not(alias.host contains ‘rsa.com')
You can use the same syntax for begins and ends queries. e.g.:
not(user.dst ends ‘$')
not(netname begins ‘private','multicast')
2018-08-13 01:26 PM
Also, make sure you have quotes around your metavalue --> '