This query will return results on all accounts enabled for a given time range. It is using EventCodes for windows 2008 and newer operating systems:
1 |
sourcetype=WinEventLog:Security (EventCode=4722) | stats count by index, user, host, name |