Microsoft Azure Monitor Activity Log Event Hub
This source allows the integration connector agent to receive the Monitor Activity Log of an Azure subscription through the Event Hub service.
Microsoft Azure Setup
To use this source type, you need to configure your Microsoft Azure subscription so that all the activity logs tracked in the Monitor section of your subscription are being sent to an Event Hub.
To configure the Azure Activity Log Event Hub source, you need to:
- create an Event Hub namespace and an Event Hub inside it
- create a Storage Account and blob container
- configure the Monitor Activity Log to export the logs to the newly created Event Hub
Find out more about how to export activity log to Azure Event Hubs
Full Import
This source supports a full import of all assets in an Azure subscription.
To trigger a full import, you can send a POST
request to the webhook path configured in the service configuration.
Service Configuration
When configuring the Azure Activity Log Event Hub source, you need to provide the following parameters in your configuration file:
type
(string): The tyoe if the source, which should be set to ``subscriptionId
(string): The ID of the Microsoft Azure subscription where the activity log and various resources are locatedeventHubNamespace
(string): The Azure Event Hub namespace nameeventHubName
(string): The Event Hub name where the activity log events are exportedcheckpointStorageAccountName
(string): The name of the storage account where the blob storage container is locatedcheckpointStorageContainerName
(string): The name of the blob storage container where the Event Hub checkpoints are savedtenantId
(string): The tenant ID of the Azure Entra ID where the entity used to authenticate is located inside the subscriptionclientId
(SecretSource): The client ID of the entity used to authenticateclientSecret
(SecretSource): The client secret of the entity used to authenticatewebhookPath
(string, optional): The path for the webhook expoed to trigger a full import.authentication
(object, options): The authentication configuration- secret (SecretSource): The secret used to validate the incoming webhook requests
- headerName (string, optional): The name of the header used to validate the incoming webhook requests.
Example
{
"type": "azure-activity-log-event-hub",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"eventHubNamespace": "my-event-hub-namespace",
"eventHubName": "my-event-hub-name",
"checkpointStorageAccountName": "my-storage-account-name",
"checkpointStorageContainerName": "my-storage-container-name",
"webhookPath": "/azure/import"
}
Single Authentication
In addition to these settings to allow the application to authenticate to the Microsoft Azure subscription you can set the following environment variables instead of the equivalent source configuration:
AZURE_TENANT_ID
: The tenant ID of the Azure Entra ID where the entity used to authenticate is located inside the subscriptionAZURE_CLIENT_ID
: The client ID of the entity used to authenticateAZURE_CLIENT_SECRET
: The client secret of the entity used to authenticate
The values set in the configuration block will take precedence over the env variables.