---
title: "Office 365"
product: "Axoflow 0.96"
url: "https://axoflow.com/docs/axoflow/data-sources/appliances/microsoft/office365/"
description: "Collect the Office 365 audit logs from the Office 365 Management Activity API with a Cloud Connector, and look up the labels that Axoflow adds."
last_modified: "2026-11-11T14:10:09+01:00"
---

> For the complete documentation index, see [llms.txt](https://axoflow.com/docs/axoflow/llms.txt).

# Office 365

Collect the Office 365 audit logs from the Office 365 Management Activity API with a Cloud Connector, and look up the labels that Axoflow adds.

Office 365:
Generates user activity and audit logs from Exchange, SharePoint, Teams, and other Office 365 services.

Axoflow can collect the audit logs of your Microsoft 365 tenant from the [Office 365 Management Activity API](https://learn.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference)
. At a high level, the process looks like this:

- [Create a **Connector Rule**](https://axoflow.com/docs/axoflow/data-sources/appliances/microsoft/office365/index.md#create-connector-rule)
  on the AxoRouter that deploys an Axoflow Cloud Connector and collects the data from the Office 365 Management Activity API. Axoflow Cloud Connector is a simple container that runs on an AxoRouter instance.
- Configure a [Flow](https://axoflow.com/docs/axoflow/data-management/index.md)
  on AxoConsole that processes and routes the collected data to your [destination](https://axoflow.com/docs/axoflow/destinations/index.md)
  (for example, Splunk or another SIEM).

Axoflow Cloud Connector polls the API periodically, and checkpoints its position, so after a restart it resumes the collection where the last poll stopped.

## Prerequisites

- An AxoRouter instance that:

  - Was provisioned with [**Enable Cloudconnectors**](https://axoflow.com/docs/axoflow/provisioning/axorouter/linux/advanced-options/index.md#cloudconnectors-enable)
    turned on.
  - Can reach the Microsoft Entra ID login endpoint (`login.microsoftonline.com`) and the Office 365 Management API endpoint (`manage.office.com`) on TCP port 443. Adjust your firewall rules and the access rules of the data source as needed.
  - You know the IP address the AxoRouter. To find it:

    1. Open the AxoConsole.
    2. Select the **Routers** or the **Topology** page.
    3. Select on AxoRouter instance that is going to receive the logs.
    4. Check the **Networks > Address** field.
- [Unified audit logging turned on](https://learn.microsoft.com/en-us/purview/audit-log-enable-disable)
  in Microsoft Purview.
- A [Microsoft Entra app registration](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app)
  that has the following **Office 365 Management APIs** application permissions, with admin consent granted:

  - `ActivityFeed.Read`
  - `ActivityFeed.ReadDlp`
  - `ServiceHealth.Read`
- The **Directory (tenant) ID** and the **Application (client) ID** of the app registration, and the value of a client secret of the app registration. The Azure portal shows the value of the secret only once, when you create the secret.

## Configure Axoflow Cloud Connector on AxoRouter

To collect data from Office 365, complete the following steps.

1. Select **Pipeline > Routers > Connector Rules > Add Connector Rule**. (Alternatively, you can select **Add Connector > Add a connector rule** on the **Connectors** page of an AxoRouter host.)

   ![Connector rules list](https://axoflow.com/docs/axoflow/img/data-management/connector-rules/connector-rules-list_hu_7f9587374bb0128b.webp)
2. Select **Office 365**.
3. Enter a name for the connector rule into the **Connector rule name** field.

   ![Generic connector rule parameters](https://axoflow.com/docs/axoflow/img/connector-rule-generic_hu_32a9c886e16162f3.webp)
4. (Optional) Add labels to the connector rule. You will be able to use these labels in [Flow Processing steps](https://axoflow.com/docs/axoflow/data-management/processing/index.md)
   , for example, in the **Query** field of **Select Messages** steps. For details about the message schema and the related connector-specific fields, see the [`meta.connector` object](https://axoflow.com/docs/axoflow/reference/message-schema/reference/index.md#meta.connector)
   .
5. Set the **Router selector** for the connector rule. The selector determines which AxoRouter instances get a connector from this connector rule.

   **CAUTION:**

   Each connector rule for Office 365 must match exactly one AxoRouter. Use the `name` or `guid` AQL selector to make sure it matches only one AxoRouter. Otherwise several Axoflow Cloud Connector instances collect the same data, and Axoflow receives every message multiple times.

   ![Router selectors](https://axoflow.com/docs/axoflow/img/data-management/connector-rules/connector-rules-router-selector_hu_4e7807cc9a0d1c54.webp)

   You can use any labels and metadata of the AxoRouter hosts in the Router selectors, for example, the hostname of the AxoRouter, or any [custom labels](https://axoflow.com/docs/axoflow/onboard-hosts/hosts/add-host-metadata/index.md)
   .

   - If you leave the router selector empty, it matches every AxoRouter instance.
   - To select only a specific AxoRouter instance, set the `name` field to the name of the instance as selector. For example, `name = my-axorouter`.
   - If you set multiple fields in the selector, the selector will match only AxoRouter instances that match all elements of the selector. (There in an AND relationship between the fields.)
6. (Optional) Enter a **Suffix** for the connector rule. AxoConsole uses the suffix in the name of the connector instances that it creates on the AxoRouter hosts. The name of the connector instance follows the `<name-of-AxoRouter>-<suffix>` schema. For example, if the name of a matching AxoRouter instance is `axorouter-1`, and the suffix of the rule is `custom`, the name of the connector on that AxoRouter is `axorouter-1-custom`.

   If the **Suffix** field is empty, AxoConsole uses the name of the connector rule instead. For example, if the name of the connector rule is `otlp-1`, the name of the connector is `axorouter-1-otlp-1`.
7. (Optional) Enter a description for the rule.
8. Under **Connection settings**, enter the details of your app registration.

   - **Tenant ID**: The directory (tenant) ID of the Microsoft Entra ID tenant to collect the audit logs from.
   - **Application (client) ID**: The application (client) ID of the app registration.
   - **Client secret value**: The value of a client secret of the app registration. Don’t use the **Secret ID** of the secret. The value can be at most 40 characters long.
9. Under **Content types**, select the audit logs to collect. By default, Axoflow Cloud Connector collects every content type.

   - **General**: The `Audit.General` content type, which contains the events that don’t belong to any other content type.
   - **Exchange**: The `Audit.Exchange` content type.
   - **SharePoint**: The `Audit.SharePoint` content type. It contains the OneDrive for Business events as well.
   - **Microsoft Entra ID**: The `Audit.AzureActiveDirectory` content type, which contains the sign-in and directory events.
   - **Data loss prevention (DLP)**: The `DLP.All` content type, which contains the data loss prevention events.

   ![Office 365 connection settings and content types](https://axoflow.com/docs/axoflow/data-sources/appliances/microsoft/office365/office365-connector-settings_hu_ce4c87f30368fd5a.webp)
10. (Optional) Select **More options** to change the [advanced options](https://axoflow.com/docs/axoflow/data-sources/appliances/microsoft/office365/index.md#advanced-options)
    of the connector.
11. Select **Add**. The Axoflow Cloud Connector starts polling the API and forwarding the collected events to the AxoRouter instance.
12. Verify that the Axoflow Cloud Connector is running.

    1. Select **Pipeline > Routers**, then select the AxoRouter you added the Axoflow Cloud Connector to.
    2. Select **Services** and check that **axoflow-cloudconnector.service** is running without errors.
    > **Note:**
    > After Axoflow Cloud Connector subscribes to the content types, it can take up to 12 hours until Microsoft makes the first audit logs available. For details, see the [Office 365 Management Activity API reference](https://learn.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference#working-with-the-office-365-management-activity-api)
    > .
13. [Create a Flow](https://axoflow.com/docs/axoflow/data-management/flows/index.md)
    to route the data from the AxoRouter instance to a destination. You can use the [Labels](https://axoflow.com/docs/axoflow/data-sources/appliances/microsoft/office365/index.md#labels)
    of this source to select its messages.

## Advanced options

Select **More options** on the connector rule to set the following options.

- **Poll interval**: How often Axoflow Cloud Connector polls the Office 365 Management Activity API. Default value: 5 minutes

## Labels

Axoflow automatically adds the following labels to data collected from this source:

| Analytics label | Message field | Value |
| --- | --- | --- |
| `vendor` | [`meta.vendor`](https://axoflow.com/docs/axoflow/reference/message-schema/reference/index.md#meta.vendor) | `microsoft` |
| `product` | [`meta.product`](https://axoflow.com/docs/axoflow/reference/message-schema/reference/index.md#meta.product) | `office365` |
| `service` | [`meta.service.name`](https://axoflow.com/docs/axoflow/reference/message-schema/reference/index.md#meta.service.name) | The content type that the event belongs to, for example, `general`. |

You can use the labels as:

- labels in **Customize Graph** on the [Analytics page](https://axoflow.com/docs/axoflow/metrics/analytics/index.md)
  ,
- in the **Filter labels** field during [log tapping](https://axoflow.com/docs/axoflow/onboard-hosts/log-tapping/index.md)
  .

You can use the message fields

- in [Flow Processing steps](https://axoflow.com/docs/axoflow/data-management/processing/index.md)
  , for example, in the **Query** field of **Select Messages** steps,
- in AQL expressions in the search bars.

## Sending data to Splunk

When sending the data collected from this source to Splunk, Axoflow uses the following sourcetype and index settings:

| sourcetype | index |
| --- | --- |
| `o365:management:activity` | `o365` |

## Sending data to Google SecOps

When sending the data collected from this source to a [*dynamic* Google SecOps destination](https://axoflow.com/docs/axoflow/destinations/google/secops/index.md)
, Axoflow sets the following log type: `MICROSOFT_365`.
