--- title: "Log analytics Azure Activity" slug: "log-analytics-azure-activity" updated: 2025-03-25T16:14:01Z published: 2025-03-25T16:14:01Z canonical: "docs.databee.buzz/log-analytics-azure-activity" --- > ## 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 Azure Activity Log Analytics Azure Activity centralizes log analysis for Azure and on-premises resources. By tracking Administrative and Alert logs, it enables auditing, security monitoring, and rapid issue detection—enhancing system security and operational efficiency. Please find more details on the official page of [Log analytics azure activity](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/log-analytics-overview). **Integration Method:** API **Tables:** Detection Finding (2004), Entity Management (3004) This integration supports the following events. | **Event** | **Description** | | --- | --- | | Administrative and Alert Activities | Return management operations and alert generated in azure. | This integration supports the following versions. | Log analytics azure activity API version supported | v1.0 | | --- | --- | > [!NOTE] > **Note:** > > Log analytics azure activity doesn’t follow a traditional versioning system. Instead, it is a continuously updated cloud service. Please find more details [here](https://azure.microsoft.com/en-us/updates/?category=management-tools&filters=%5B%22Azure+Monitor%22%5D). ## Prerequisites - The user required at least Global Administrator privilege to create and manage application in azure cloud. - The user should have access to the DataBee platform. ## Configuration Overview 1. Create an application with required permissions to fetch the data. 2. Add [Log analytics azure activity](/user-manual/docs/log-analytics-azure-activity#databee-configuration) in the DataBee console with below parameter. | **DataBee Feed Parameter** | **Azure Parameter** | | --- | --- | | Workspace ID | [Workspace ID](/docs/log-analytics-azure-activity#workspaceID) | | Client Key | Application (Client) ID | | Client Secret | [Client Secret](/docs/log-analytics-azure-activity#Clientsecret) | | Token URL() | Directory (tenant) ID | ## Azure Configuration ### Create an application 1. Log on to [Azure portal](https://portal.azure.com/) with an account that has the Global Administrator privileges. 2. In the search bar, search for **App Registrations** and select it. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/Picture1(1).png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 3. On the “App registrations” page, click on **New registration.** The “Register an application” window will appear. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/Picture2.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 4. On the “Register an application” window: - 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/Picture3.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%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/Picture4.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) ### Add Endpoint Access Once the application is created, appropriate permissions should be provided in order 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 To add permissions for the endpoint outlined above, 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. Go to **APIs my organization uses** > Search for the **“**Log analytics API**”** and select the **Log Analytics API.** ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/Picture5.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 3. Click on **Log Analytics API** then select **Delegated Permissions** as Permission type. | **Event** | **Type** | **Permission** | | --- | --- | --- | | Administrative and Alert Activities | Delegated | Data.Read | 4. Click the **Add permissions** button after selecting all required permissions. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-azure-activity-mar2025-image-yfuc3mkm.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 5. On the “API permissions” page: ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-azure-activity-mar2025-image-ausqxwfa.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 1. Click **Grant Admin Consent** **for **. 2. Click the **Yes** button on the consent confirmation. 6. The required permissions are now added for the endpoints. Overall permission looks like this and make sure that type is application for all. ![A screenshot of a computer AI-generated content may be incorrect.](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-azure-activity-mar2025-image-iyslo0tx.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) ### Workspace configuration Now our app has permissions to use API, our app needs access to Log Analytics workspace. 1. Search for **Log Analytics workspaces** as shown below. Go to “Log Analytics workspace” overview page. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-azure-activity-mar2025-image-kq6rffdb.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 2. Go to your **Workspace** and then save **workspace ID** for future use. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-azure-activity-mar2025-image-2flvimcn.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 3. From the left tab menu, Select **Access control (IAM)** > Select **Add role assignment.** ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-azure-activity-mar2025-image-gm3m59i5.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 4. Select the **Reader** role and then click on **Next**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-azure-activity-mar2025-image-arduse21.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 5. On the **Members** tab, choose **Select members**. Enter the name of your app in the Select box. Select your app and choose Select. Select **Review** + **assign**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-azure-activity-mar2025-image-tuxdu5tk.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) > [!NOTE] > Note: > > For more details on the above steps. Please refer [documentation](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/api/register-app-for-token?tabs=portal). ### 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 and Secrets**, and then **Client Secrets**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/Picture6.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 3. Click **New client secret**. Then “Add a client secret” window appears. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/Picture7.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%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. 2. Then click on **Add** to create the client secret. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/Picture8.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 5. Save **Client Secret** for future use. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/Picture9.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) > [!NOTE] > Note: > > The user needs to re-create the client secret when it expires. ## DataBee Configuration 1. Login to the DataBee UI, navigate to **Data** > **Data Feeds** and click the **Add New Data Feed** button. ![Inserting image...](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-azure-activity-mar2025-image-x02ltb4w.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 2. Search for the **Log Analytics Azure Activity** and click it as shown below. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-azure-activity-mar2025-image-n81njqsm.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 3. Click on the **API Ingest** option for collection method. ![Inserting image...](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-azure-activity-mar2025-image-t7sq4qk1.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 4. Enter feed contact information and click **Next**. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/log-analytics-azure-activity-mar2025-image-lroyx278.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 5. In the configuration page, enter the following - Authentication Method: OAuth2 - Client Key: **Client ID** found in the application overview page. - Client Secret: [Client Secret](/docs/log-analytics-azure-activity#Clientsecret) generated for the application. - Token URL: update the **Tenant ID** found in the application overview page. - API Base URL: keep the default API Base URL. - Event Types: preselected for all the event types that integration pulls. - Workspace ID: provide [Workspace ID](/docs/log-analytics-azure-activity#workspaceID) for the application. ![](https://cdn.document360.io/04e48772-4346-44a4-aa69-043eca42257c/Images/Documentation/LogAnalyticsCOnfig.png?sv=2026-02-06&spr=https&st=2026-10-30T11%3A37%3A07Z&se=2026-10-30T12%3A37%3A07Z&sr=c&sp=r&sig=R4f2VO8v%2BPGom69bYpvKaS3Be43h1Q%2Bi1NPcq2Mid6M%3D) 6. Click **Submit**. ## Troubleshooting Tips - Ensure the token is pasted correctly. Since you cannot view the token after the 1st time, re-create the token, paste it on a text editor to ensure no spaces or unexpected characters are included and reconfigure the DataBee feed. - Ensure that the application has necessary permissions as mentioned in the document.