Hello,
I have defined a Watchlist that contains user names and known user IP addresses. I'm Trying to set up a query that will alert if it records a log-in associated with User A1 but NOT IP Address A2. (i.e. if Donald Duck logs in from 192.198.0.1 then do not alert, however if DonaldDuck logs in from 192.168.0.2 then DO ALERT). Is there any way to alert on just the value to the right of the username? I have a query that seems to search for ALL Usernames against ALL Ipadresses
Any help would be great
Username,IPAddress
DonaldDuck,192.198.0.1
BugsBunny,192.198.0.2
JackTorrance,192.198.0.3
My base query:
let watchlist = (_GetWatchlist('mwl') | project Username, IPAddress);
SignInLog
| where UserDisplayName in watchlist and IPAddress !in watchlist
| project IPAddress, UserDisplayName