Office 365
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 . At a high level, the process looks like this:
- Create a 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 on AxoConsole that processes and routes the collected data to your destination (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 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:
- Open the AxoConsole.
- Select the Routers or the Topology page.
- Select on AxoRouter instance that is going to receive the logs.
- Check the Networks > Address field.
-
Unified audit logging turned on in Microsoft Purview.
-
A Microsoft Entra app registration that has the following Office 365 Management APIs application permissions, with admin consent granted:
ActivityFeed.ReadActivityFeed.ReadDlpServiceHealth.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.
-
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.)

-
Select Office 365.
-
Enter a name for the connector rule into the Connector rule name field.

-
(Optional) Add labels to the connector rule. You will be able to use these labels in Flow Processing steps , 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.connectorobject . -
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
nameorguidAQL 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.
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 .
- If you leave the router selector empty, it matches every AxoRouter instance.
- To select only a specific AxoRouter instance, set the
namefield 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.)
-
(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 isaxorouter-1, and the suffix of the rule iscustom, the name of the connector on that AxoRouter isaxorouter-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 isaxorouter-1-otlp-1. -
(Optional) Enter a description for the rule.
-
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.
-
Under Content types, select the audit logs to collect. By default, Axoflow Cloud Connector collects every content type.
- General: The
Audit.Generalcontent type, which contains the events that don’t belong to any other content type. - Exchange: The
Audit.Exchangecontent type. - SharePoint: The
Audit.SharePointcontent type. It contains the OneDrive for Business events as well. - Microsoft Entra ID: The
Audit.AzureActiveDirectorycontent type, which contains the sign-in and directory events. - Data loss prevention (DLP): The
DLP.Allcontent type, which contains the data loss prevention events.

- General: The
-
(Optional) Select More options to change the advanced options of the connector.
-
Select Add. The Axoflow Cloud Connector starts polling the API and forwarding the collected events to the AxoRouter instance.
-
Verify that the Axoflow Cloud Connector is running.
- Select Pipeline > Routers, then select the AxoRouter you added the Axoflow Cloud Connector to.
- 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 . -
Create a Flow to route the data from the AxoRouter instance to a destination. You can use the 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
|
microsoft |
product |
meta.product
|
office365 |
service |
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 ,
- in the Filter labels field during log tapping .
You can use the message fields
- in Flow Processing steps , 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
, Axoflow sets the following log type: MICROSOFT_365.