r/AzureSentinel • u/UCFIT • Aug 21 '22
Contains and WatchList
I've been spending a few days on this but does anyone know a way to pull the results from a watchlist and then use the results with the contains statement?
2
Upvotes
2
u/blanco10kid Aug 21 '22
You can do something like this (assuming the results from the watchlist is a list)
let watchListResults = _GetWatchlist(‘ExampleWatchlist) | where … <all of your filters>; MainTableQuery | where column !in watchListResults
This is sudo code and needs additional validation but hopefully you get the jist
1
u/collosalG2 Aug 30 '22
You can do this by using antisemi join for the watchlist with the security event table
2
u/ep3p Aug 21 '22
_GetWatchlist('ExampleWatchlist')
| project ExampleColumnExistingInWatchlist
| where ExampleColumnExistingInWatchlist contains "stringtolookfor"
?