Enable ADFS debug logging
You can turn on ADFS debugging logging to help you troubleshoot issues.
Set Trace level and enable the ADFS tracing log
- Run command prompt as an administrator.
- Type the following command:C:Windowssystem32>wevtutil sl “AD FS Tracing/Debug” /L:5
- OpenEvent Viewer.
- Right-click onApplication and Services Logs.and selectView>Show Analytics.
- Navigate to AD FS Tracing – Debug.
- Right-click and selectEnable Logto start Trace Debugging immediately.
- Navigate to AD FS Tracing – Debug.
- Right-click and selectDisable Logto stop Trace Debugging. It is difficult to scroll and search in the events page by page in the Debug Log, so it is recommended that you save all Debug events to a *.evtx file first.
- Open the saved log again and observe that it now includes ADFS Tracing events. These can be analyzed, according to the applicable timestamps, for troubleshooting purposes.
Enable Object access auditing to see access data in security logs
To observe detailed information about access activities on the ADFS servers, you must enable object access auditing in two locations on the ADFS servers:
- To turn on auditing in the ADFS UI, do the following:
- On the primary ADFS server, right-click onService.
- Select theSuccess auditsandFailure auditscheckboxes. These settings are valid for all ADFS servers in the farm.
- To modify the Local Security Policy, do the following:
- Search Windows forgpedit.msc.
- Navigate toComputer Configuration\Windows Settings\Security Settings\Local Policies\Audit Policy.
- In the policy list, right-click onAudit Object Access
- Select theSuccessandFailurecheckboxes. These settings have to be enabled in the Local Security Policy on each ADFS server (or in an equivalent GPO that is set in Active Directory).
- ClickOK.
- Open the security event logs on the ADFS servers and search for the timestamps that correspond to any testing or troubleshooting that is being conducted.