Documentation forHybrid Cloud Observability Essentialsand Server & Application Monitor

Microsoft Office 365 Mail Traffic Statistics

Use this SAM application monitor template to monitor Office 365 Exchange traffic statistics in SAM, including the top senders and receivers of email in your environment based on count.

Tip: Consider using one of the new SAM API Poller templates designed for Microsoft 365 instead of legacy application monitor templates.


This template requires WMI access to the target server.

See also Connect to Exchange Online Using Remote PowerShell (© 2020, Microsoft Corp, available at, obtained on February 3, 2020).

Run the PowerShell script mentioned in the Microsoft article on the Orion server, not the target node.


  • An Orion Platform account with SAM administrator permissions.
  • An all-in-one, inclusive Office 365 account with Global Administrator privileges that can monitor all mailboxes.

    Alternatively, use an account with an admin role that has permission to access data monitored via the Office 365 API.

  • Use UPN format (username@domain) — not domain\username format to enter credentials.

    To avoid authentication issues if passwords change, use a service account.