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 . 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:

      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 in Microsoft Purview.

  • A Microsoft Entra app registration 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

  2. Select Office 365.

  3. Enter a name for the connector rule into the Connector rule name field.

    Generic connector rule parameters

  4. (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.connector object .

  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

    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 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

  10. (Optional) Select More options to change the 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.
  13. 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:

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.