Forum Discussion
finchl1973
Nov 15, 2023Copper Contributor
KQL | where User !in (AuditSearch)
Hi, I'm searching through AuditLogs to check for a previous event and using the let statement to assign to a temporary table called AuditSearch. Another search of the AuditLog is being done w...
Clive_Watson
Nov 15, 2023Bronze Contributor
Perhaps create a fake table and use Union isfuzzy=true to handle the error?
let AuditSearch = materialize ( AuditLogs
| distinct OperationName);
let fake_ = datatable (name:string)['fake value'];
union isfuzzy=true AuditSearch, fake_
//| extend OperationName = "This is not in the original" /// supply a made up value
| where OperationName !in (AuditSearch)
| distinct OperationName
- finchl1973Nov 15, 2023Copper Contributor
- finchl1973Nov 20, 2023Copper ContributorHi,
Decided to use a table join with rightanti which shows the results whereby second search doesn't appear in first search and also works if first search doesn't find any results (which the !in didnt work for that scenario)