Forum Discussion
jainshamu
Sep 22, 2021Copper Contributor
AND operator in KQL
How can we whitelist combination of columns using KQL. For Eg. I want to create exclusion like below: | where column1 !contains "abc" and column2 !contains "qwe" and column3 !contains "xyz" w...
GaryBushey
Sep 22, 2021Bronze Contributor
jainshamu You can always use multiple lines.
| where column1 !contains "abc"
| where column2 !contains "qwe"
| where column3 !comtains "xyz"
CliveWatson
Sep 22, 2021Former Employee
I would have expected the original query to work, similar example I use (slightly modified).
Usage
| where tostring(IsBillable) !contains "false" and
DataType !in("Operation", "Usage") and
DataType !startswith "VM" and
Solution !contains "Log"
| summarize by DataType, Solution, IsBillable
- GaryBusheySep 22, 2021Bronze Contributor
CliveWatson Out of curiosity, Is there any benefit to using one way over the other? Is one faster than the other?