--- title: "Log Analytics XDR" slug: "log-analytics-xdr" updated: 2025-03-24T16:50:57Z published: 2025-03-24T16:50:57Z canonical: "docs.databee.buzz/log-analytics-xdr" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.databee.buzz/llms.txt > Use this file to discover all available pages before exploring further. # Log Analytics XDR Log Analytics XDR enhances security operations by aggregating and analyzing logs from multiple sources to detect, investigate, and respond to threats in real time. By leveraging advanced analytics and automation, it provides deep visibility into security events, enabling proactive threat detection and faster incident response. For detailed information, please refer to the [Microsoft’s official documentation](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/log-analytics-overview). **Integration Method:** API **Tables**: Detection Finding (2004) This integration supports the following type of events. | **Event** | **Description** | | --- | --- | | Alerts | Retrieve a list of alerts. | > [!NOTE] > **Note:** > > Azure Log Analytics XDR is a continuously updated cloud service. As for this document preparation, the latest release was in [January 2025](https://learn.microsoft.com/en-us/defender-xdr/whats-new#february-2025). ## Prerequisites - The user should have access to the [Azure portal](https://portal.azure.com/) with an account that has the Global Administrator privileges. - The user should have access to the DataBee console. ## Configuration Overview 1. [Create Microsoft Sentinel resource group and workspace](/user-manual/docs/log-analytics-xdr#create-microsoft-sentinel-resource-group-and-workspace). 2. [Configure Microsoft defender XDR](/user-manual/docs/log-analytics-xdr#configure-microsoft-defender-xdr). 3. [Create an application](/user-manual/docs/log-analytics-xdr#create-an-application) with required permissions to fetch the data. 4. Create [Log Analytics XDR Data Feed](/user-manual/docs/log-analytics-xdr#databee-configuration) in the DataBee console with the required Client credentials. | **DataBee Parameter** | **Azure Parameter** | | --- | --- | | Client Key | Application (client) ID | | Client Secret | Client Secret Value | | Token URL() | Directory (Tenant) ID | ## Azure Configuration - DataBee needs to connect to an Azure monitor log analytics API endpoint which retrieves a list of all AlertInfo and AlertEvidence generated on Azure Monitor. - Integration uses KQL queries. The workspace needs to have the “AlertInfo” and “AlertEvidence” tables. - To ingest data into workspace’s tables, set up the “Defender XDR” connector in Microsoft Sentinel, use Content Hub for same. Note that “Microsoft Defender” should have data otherwise you need to generate data for “AlertInfo” and “AlertEvidence” tables. ## Create Microsoft Sentinel Resource Group and Workspace 1. In the search bar, search for **Microsoft Sentinel** and select it. 2. Click on the **Create** button to create a new resource group. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-oy1a9fm1.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 3. Click on the **Create a new workspace** button to create workspace. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-5pg1a816.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 4. Select the ‘Subscription’. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-324djl47.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 5. Enter the Workspace name. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-b6rt1xmp.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 6. Click the **Create New** button to create a new resource group or select an existing one. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-oh9ghbo0.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 7. Enter the resource group name. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-j1qcveh8.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 8. Click on the **OK** button and then click on **Review + Create** button. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-fqzqtptv.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 9. Click on the **Create** button. 10. Click on Created workspace and on overview page, copy the ‘workspace ID’ for later use. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-8zxic0a7.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-zk0kaxow.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) ## Configure Microsoft Defender XDR 1. Click on created Microsoft sentinel workspace**.** 2. Click on left side bar **Content hub.** ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-w7tzea7v.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 3. In the Search bar, search **Defender for XDR.** 1. Select **Microsoft Defender XDR** and click on **Install.** ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-knrmhp59.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 4. After installing the Microsoft Defender XDR, click on **Manage.** ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-57j0aj05.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 5. Select **Microsoft Defender XDR** and click on **Open connector page**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-uotj9be1.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 6. Check the Prerequisites and scroll down. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-07za9k8m.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 7. Select Microsoft Defender Alerts (AlertInfo and AlertEvidence) and click on **Apply Changes.** ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-zx96nj5k.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) ### Create an application 1. Log on to [Azure portal](https://portal.azure.com/) with an account that has the Global Administrator privilege. 2. In the search bar, search for **App Registrations** and select it. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-ymg966p7.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 3. On the “App registrations” page, select **New registration, “**Register an application” window will appear. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-wb9vl617.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 4. On the “Register an application” window: 1. Under ‘Name’**,** enter your Application Name then click on **Register** to create the application. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-xy2j2e1n.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 5. On the app **Overview** page, copy the **Application (client) ID** and **Directory (tenant) ID** for later use. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-7q7f5p73.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) ### Add Endpoint Access Once the application is created, one permission should be provided to fetch data. The appropriate permissions for the application are needed to access these endpoints. The following section details how to configure and add permissions to the required endpoints. #### Add Permissions From the Azure Active Directory portal: 1. Select the application registered in the previous step. 2. Under **Manage,** click **API Permissions** and then click **Add a Permission,** the “Request API permissions” window will appear. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-jyh5xbsu.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 3. On **APIs my organization uses** window, Click on **Log Analytics API**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-mv7gyzu6.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 4. Click on **Application Permissions** and select permission. | **Event** | **Type** | **Permission** | | --- | --- | --- | | Alerts | Application | Data.Read | 5. Click the **Add permissions** button after selecting all required permissions. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-g8nr4q2g.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 6. On the “API permissions” page, click **Grant Admin Consent** **for and** Click the **Yes** button on the consent confirmation. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-j6cne6k6.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 7. The necessary permissions have now been added for the endpoints. After this step, the permissions should include at least the minimum required permissions shown in the screenshot below. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-3jyj1rvl.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) ### Create the Client Secret The final step to accessing the APIs is creating a **Client Secret**. To create it from the Azure Portal: 1. Select the application created above. 2. Under **Manage**, Click **Certificates & Secrets**, and then **Client Secrets**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-uwu49qik.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 3. Click New client secret. Then “Add a client secret” window appears. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-4li0b64p.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 4. On “Add a client secret” window: 1. Enter a ‘Description’ for this client secret and select the desired expiry period from the ‘Expires’ drop-list. 5. Then click on **Add** to create the client secret. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-jm5mtveq.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) > [!NOTE] > Note: > > The user needs to re-create the client secret when it expires. 6. Copy the ‘Value’ fields for later use. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-6hh5o9nw.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) ## DataBee Configuration 1. Login to the DataBee UI, navigate to **Data** > **Data Feeds** and click the **Add New Data Feed** button. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-w7lpwnku.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 2. Search for the **Log Analytics XDR** and click it as shown below. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-r7uwyr3j.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 3. Click on the **API Ingest** option for collection method. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-hl4bj8xi.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 4. Enter feed contact information and click **Next.** ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-du3mqach.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 5. In the configuration page, confirm the following: - API Base URL: [Base URL](https://api.loganalytics.azure.com) - Authorization Method: OAuth2 - Client Key: paste the **Application (Client) ID** generated earlier. - Client Secret: paste the **Client Secret** Value generated earlier. - Token URL: replace placeholder with your **Directory (Tenant) ID**. - Workspace ID: paste the **Workspace ID** generated earlier. - Event Types: preselected for all the event types that integration pulls. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-xdr-user-guide-mar2025-image-zjuhkxh8.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A33%3A11Z&se=2026-10-30T12%3A33%3A11Z&sr=c&sp=r&sig=M2IT%2BeryWL5RHw76fA7CTmQ2cVtr%2B%2BiObzQH137Bb4s%3D) 6. Click **Submit**. ## Troubleshooting Tips - If you are facing an **invalid client** or **unauthorized client** error this might be possibly due to incorrect credentials. Ensure the client key, client secret and Tenant ID are pasted correctly. Since you cannot view the client secret after the 1st time, re-create it, paste it on a text editor to ensure no spaces or unexpected characters are included and reconfigure the DataBee feed. - If you are facing response code **403** this might be possibly due to missing permissions. Ensure that all the required permissions are granted correctly as per the above-mentioned steps.