index=endpoint_ms_winevents sourcetype=XmlWinEventLog user=TESTER EventID=4624 OR EventID=4634 | stats earliest_time(_time) AS Login, latest_time(_time) AS Shutdown by user src_ip | convert ctime(Login) ctime(Shutdown) | table Login Shutdown src_ip user | sort Login 1) Having to run this one day at a time...with DATE and Time Range set 02:00:00 using earliest=@d+2h always calculates for today... Not able to use earliest set over a range of days... 2) Windows Eventlog are chatty for login/logout; searches over 3m events a day. Any other filtering you suggest? Output needed is user, Login, Logout and src_ip ...(on VPN or at office)
... View more