Skip to main content
Skip table of contents

Initialize the Microsoft Graph API Beat

Prerequisites

  • The Open Collector is installed. If you have not already installed it, follow the instructions in the Open Collector Installation and User Guide, and then return to this topic.
  • A Client Secret ID and Client Secret Value is generated to provide the configuration keys.
  • The following port is open:

    Direction

    Port

    Protocol

    Source

    Outbound443HTTPS

    msgraphbeat

Initialize the Beat

  1. Confirm the Open Collector is running by entering the following command:

    BASH
    ./lrctl status

    You should see the open_collector and metrics as shown in the following graphic:


    If the Open Collector is not running correctly, see Troubleshoot the Open Collector in the Open Collector Installation and User Guide.

  2. In the Open Collector, run the following command:

    BASH
    ./lrctl msgraphbeat start
  3. Enter a unique identifier for the beat instance and press Enter.
  4. Enter one of the following Microsoft Graph API URLs, depending on the endpoint being configured, and then press Enter:
    • graph.microsoft.com/v1.0/auditLogs/directoryAudits
    • graph.microsoft.com/v1.0/auditLogs/signIns
    • graph.microsoft.com/v1.0/security/alerts
  5. Enter the Microsoft Graph API Client ID, which was obtained as the Application ID in Configure Microsoft Graph API, and then press Enter.
  6. Enter the Microsoft Graph API Client Secret, which was obtained as the Secret Value when creating a Client Secret in Configure Microsoft Graph API, and then press Enter.
  7. Enter the Microsoft Graph API Tenant ID, and then press Enter.
  8. Enter the number of records that the Microsoft Graph API beat should fetch, and then press Enter.

    The configuration has been saved and the service has been started successfully.
  9. (Optional.) To check the status of the service, enter the following command:

    BASH
    ./lrctl msgraphbeat status

    The Microsoft Graph API beat gathers logs through all three of the endpoints mentioned above, and sends the data to the output configured in the beat's config.yaml file. The beat adds the appropriate date and time filter to get the latest and most relevant data, and sends it ahead in the pipeline.

       

Default Config Values for the Microsoft Graph API Beat

S.

No.

Field NameDefault Value
1.client_idUser-provided
2.client_secretUser-provided
3.msgraphURLUser-provided
4.tenant_idUser-provided
5.top (number of records to fetch)User-provided
6.

heartbeatdisabled

false
7.heartbeatinterval60
8.limit1000
9.numbackdaysData7
10.period2s
11.top100
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.