Azure Audit Logs

Self Service Ingestion

Connect this data source on your own, using the Hunters platform.

Overview

Table name: azure_audit

Azure Audit logs and tracks all operations performed on Azure resources, making this data available for auditing and compliance purposes.

Send data to Hunters

Hunters supports the ingestion of these logs using Azure Event Hub. Follow the steps below to complete the connection.

STEP 1: Set up Azure Event Hub

Before setting up the connection on the Hunters platform, you'll need to set up and create an Azure Event Hub.

Follow this guide to complete the set up.

STEP 2: Route logs to the Event Hub

  1. In the Azure portal home screen, open the side menu and click Microsoft Entra ID.
    Microsoft Entra ID

  2. Now, scroll down the side menu to the Monitoring section, and click Audit Logs.
    Entra ID Audit Logs

  3. Click Export Data Settings.
    Audit log Sign In log export data setting

    The Diagnostic Settings page opens.

  4. Click Add Diagnostic setting.

  5. Under Logs, check the AuditLogs checkbox.

  6. Under Destination details, check the Stream to an Event Hub option.

  7. Fill in the requested details and give the diagnostic setting a name.

  8. Click Save.


STEP 3: Set up the connection on Hunters

📘 Before you begin
To complete this process you will need the information gathered when following this guide.
To connect logs to Hunters:
  1. Open the Hunters platform and navigate to Data > Data Sources.
    Data sources1
  2. Click ADD DATA SOURCES.
    Add data source4
  3. Locate the Microsoft Azure panel and click Connect.
    The Add Data Flows window opens.
  4. Fill in the required Azure application details, as gathered here under STEP 2.
    Connect Azure logs on Hunters
  5. Under the Data Types section, activate the data types you want to connect.
  6. For each activated data type, fill in the required information, as gathered here:
    1. Under STEP 1 - Subscription ID
    2. Under STEP 3 - Resource group name and Event Hub namespace and
    3. Under STEP 4 - Event Hub name.
  7. OPTIONAL: Under the Consumer group field you can specify a specific Azure Event Hub consumer group, or leave this field empty to use the default consumer group.
  8. Click Test Connection to make sure everything was set up correctly.
  9. Once the connection is established, click Submit.

Expected format

{"caller": "Microsoft.Insights/ActivityLogAlerts", "time": "2023-10-03T02:04:37.6448162Z", "resourceId": "/subscriptions/1111/resourceGroups/cc_az_activity_log_alert", "location": "global", "operationName": "Microsoft.Insights/ActivityLogAlerts/Activated/action", "correlationId": "aaaa-1111", "category": "Alert", "resultType": "Succeeded", "resultDescription": "Alert: cc_az_activity_log_alert called on action groups : cc_az_webhook_action_group", "level": "Informational", "identity": {"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/spn":"Microsoft.Insights/activityLogAlerts"}, "properties": {"subscriptionId":"1111-aaaa","tenantId":"2222-bbbb","eventDataId":"asdf1234","resourceGroup":"azure-arc-vmware","resourceId":"/subscriptions/1111/resourceGroups/cc_az_activity_log_alert","eventTimestamp":"2023-10-03T01:57:02.5719195Z","operationName":"Microsoft.Automanage/configurationProfileAssignments/write","status":"Succeeded"}}