Method 1: Use Outlook on the web
- Sign in to the Office 365 portal (http://portal.office.com/).
- Click Mail to open Outlook on the web (formerly known as Outlook Web App).
- In the upper-right area of the page, click Settings ( ), and then click Options.
- In the navigation pane on the left, expand General, and then click Mobile Devices.
- In the list of devices, select the device that you want to track, and then click Start Logging.
- In the Information dialog box, click Yes.
- Reproduce the behavior that you want to capture, and then click Retrieve Log.
An email message that contains the log file (EASMailboxLog.txt) as an attachment is sent to your mailbox.
Method 2: Use Exchange Online PowerShell
- Connect to Exchange Online by using remote PowerShell. For more information, see Connect to Exchange Online using remote PowerShell.
- Run the following command to enable ActiveSync logging for a specific user:
Set-CASMailbox alias -ActiveSyncDebugLogging:$true
- Reproduce the behavior that you want to capture.
- Run the following command to retrieve the log:Note This command retrieves the statistics for the mobile device that's set up to synchronize with the mailbox of the user who you specified. In this example, it also sends the log file to email@example.com.
Get-MobileDeviceStatistics -Mailbox alias -GetMailboxLog:$true -NotificationEmailAddresses "firstname.lastname@example.org"