Cloud Computing Support Image

Auditing Account Logon

How to configure and report account logon auditing.

Relevance

Last Review: January 15, 2016

Product(s): Windows Server 2012 R2

Cybersecurity

Avoid the risk of compliance penalties, lost revenue, and damaged reputation.

Overwatch

Procedure

To review and report user logon events, you must enable Audit Logon Events for PC(s) and Audit Account Logon Events for domain logon. Then set a security log size and retention. Finally, periodically filter the security log and export to Excel for reporting to management.

  1. Open the Group Policy Management Console on a domain controller.
  2. Right-click on the domain name and click Create a GPO in this domain and Link it here.
  3. Type Logon Logoff Auditing and click OK.
  4. Right-click on the newly created Logon Logoff Auditing policy and click Edit.
  5. Expand Computer Configuration, and go to the node Audit Policy (Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Audit Policy).
  6. Double-click on the policy setting Audit account logon events, check Success and Failure audit, and click OK.
  7. Double-click on the policy setting Audit logon events, check Success and Failure audit, and click OK.
  8. Remain in Group Policy Managment, right-click on the domain name or OU where you have applied the policy and click on Group Policy Update.
  9. Next set the security log size and retention, by expanding Computer Configuration\Windows Settings\Security Settings\Event Log\
  10. Set Retain securiry log to 90 days and Retention method for security log to By days.
  11. At desired audit schedule open the EventViewer, Right-click on Securiry log and choose Filter Current log...
  12. These are the logon and logoff Event IDs:
    • 4624: An account was successfully logged on
    • 4625: An account failed to log on
    • 4634: An account was logged off
    • 4647: User initiated logoff
  13. Once the filtering is complete, you can right-click and Save Filtered Log File As… an XML file for opening in Excel as an XML table.
  14. Then you will have a spreadsheet where you can hide the columns you don’t want and filter through the logon/logoff events.