2021-05-19 01:28 AM
Hi All
Which one is correct
1. user_dst!=ANY(user_src)
2. user_dst!=ALL(user_src)
What is the difference?
2021-05-19 12:43 PM
Theany
subquery condition is true if the expression returns true for one or more of the values returned by the subquery.
...
The
all
subquery condition is true if the expression returns true for all of the values returned by the subquery.
That said....you should only use ANY() and ALL() when evaluating multi-valued meta (i.e.: meta keys that can contain more than one meta value, such as alias.host, action, etc.)
For metakeys like user.src and user.dst (which should only ever have a single meta value per event/session), you're better off using syntax like:
2021-05-19 12:43 PM
Theany
subquery condition is true if the expression returns true for one or more of the values returned by the subquery.
...
The
all
subquery condition is true if the expression returns true for all of the values returned by the subquery.
That said....you should only use ANY() and ALL() when evaluating multi-valued meta (i.e.: meta keys that can contain more than one meta value, such as alias.host, action, etc.)
For metakeys like user.src and user.dst (which should only ever have a single meta value per event/session), you're better off using syntax like:
2021-05-31 02:25 AM
Thank you @JoshRandall