How to collect ActiveSync device logs to troubleshoot sync issues between mobile devices and Exchange Online
This article describes how to collect Exchange ActiveSync device logs to troubleshoot sync issues between mobile devices and Exchange Online in Microsoft Office 365. If you can't sync your mobile device to your mailbox, you may be asked by Office 365 Support to collect logs for troubleshooting.
To capture ActiveSync device log information, follow these steps:
Run the Set-CASMailbox cmdlet to enable ActiveSync logging for a specific user:
Exchange ActiveSync debug logging is enabled for 48 hours in Exchange Online, and 72 hours in Exchange Server. After the time period expires, the value reverts to
Set-CASMailbox firstname.lastname@example.org -ActiveSyncDebugLogging $true
This example enables Exchange ActiveSync debug logging for the user email@example.com.
Reproduce the behavior that you want to capture.
Run the Get-MobileDeviceStatistics cmdlet to retrieve the log:
Get-MobileDeviceStatistics -Mailbox TonySmith -GetMailboxLog $true -NotificationEmailAddresses "firstname.lastname@example.org"
This example retrieves the statistics for the mobile phone configured to synchronize with the mailbox that belongs to the user Tony Smith. It also outputs the log file and sends it to the System Administrator at email@example.com.
Still need help? Go to Microsoft Community.