Instructions for configuring your Microsoft 365 tenant are included at the bottom of this document, but here are a few important notes to acknowledge.
After configuring this source, both metrics and logs will take some time to become available.
Finally, note that the client secret used to connect will expire (recommended 180 days) and needs to be re-generated, and your source will need to be reconfigured with the new client secret. The initial delay for logs will not be repeated upon reconfiguration.
Platform | Metrics | Logs | Traces |
---|---|---|---|
Linux | ✓ | ✓ | |
Windows | ✓ | ✓ | |
macOS | ✓ | ✓ |
Metric | Unit | Description | Attribute Values |
---|---|---|---|
m365.onedrive.files.active.count | {files} |
The number of active files across the OneDrive in the last seven days. | |
m365.onedrive.files.count | {files} |
The number of total files across the OneDrive for the last seven days. | |
m365.onedrive.user_activity.count | {users} |
The number of users who have interacted with a OneDrive file, by action in the last seven days. | activity: view_edit , synced , internal_share , external_share |
m365.outlook.app.user.count | {users} |
The number of unique users per app over the period of time in the organization Outlook in the last seven days. | app: pop3 , imap4 , smtp , windows , mac , web , mobile , other_mobile |
m365.outlook.email_activity.count | {emails} |
The number of email actions by members over the period of time in the organization Outlook. | activity: read , sent , received |
m365.outlook.mailboxes.active.count | {mailboxes} |
The number of mailboxes that have been active each day in the organization for the last seven days. | |
m365.outlook.quota_status.count | {mailboxes} |
The number of mailboxes in the various quota statuses over the period of time in the org in the last seven days. | state: under_limit , warning , send_prohibited , send_receive_prohibited , indeterminate |
m365.outlook.storage.used | By | The amount of storage used in Outlook by the organization in the last seven days. | |
m365.sharepoint.files.active.count | {files} |
The number of active files across all sites in the last seven days. | |
m365.sharepoint.files.count | {files} |
The number of total files across all sites in the last seven days. | |
m365.sharepoint.pages.unique.count | {views} |
The number of unique views of pages across all sites in the last seven days. | |
m365.sharepoint.pages.viewed.count | {pages} |
The number of unique pages viewed across all sites in the last seven days. | |
m365.sharepoint.site.storage.used | By | The amount of storage used by all sites across SharePoint in the last seven days. | |
m365.sharepoint.sites.active.count | {sites} |
The number of active sites across SharePoint in the last seven days. | |
m365.teams.calls.count | {calls} |
The number of MS Teams calls from users in the organization in the last seven days. | |
m365.teams.device_usage.users | {users} |
The number of unique users by device/platform that used Teams in the last seven days. | device: Android , iOS , Mac , Windows , Chrome OS , Linux , Web |
m365.teams.meetings.count | {meetings} |
The number of MS Teams meetings for users in the organization in the last seven days. | |
m365.teams.messages.private.count | {messages} |
The number of MS Teams private-messages sent by users in the organization in the last seven days. | |
m365.teams.messages.team.count | {messages} |
The number of MS Teams team-messages sent by users in the organization in the last seven days. |
Parameter | Type | Default | Description |
---|---|---|---|
telemetry_types | telemetrySelector |
["Logs", "Metrics"] |
Choose Telemetry Type. |
tenant_id* | string |
Identifies the instance of Microsoft 365 to be monitored. | |
client_id* | string |
Identifier this receiver will use when monitoring. | |
client_secret* | string |
The private key this receiver will use when monitoring must belong to the given Client ID. | |
poll_interval | duration |
5m | Sets how often (minutes) to collect logs. |
collection_interval | duration |
1h | Sets how often (hours) to scrape for metrics. |
Once running on an agent, metrics will look like this:
And logs will look like this:
The steps below outline how to configure Microsoft 365 to allow the receiver to collect metrics from the tenant to be monitored.
Login to Azure: Log in to Microsoft Azure under an Admin account for the instance of 365 to be monitored.
Register the receiver in Azure AD: Navigate to Azure Active Directory. Then go to “App Registrations” and select “New Registration”.
Give the app a descriptive name like “365 Receiver”. For “Supported account types”, select the Single Tenant option and leave the Redirect URL empty.
Add API Permissions: Select “View API Permissions” beneath the general application info and click “Add Permissions”. The permissions needed for metrics and logs differ, so whichever monitoring is necessary, the respective permissions are outlined below.
{organization}
” button and confirm the pop-up. This will allow the application to access the data returned by the Microsoft Graph and Office 365 Management APIs.