Table of contents
- Integration with Microsoft Azure Event Hub
- Adding a Fluency plug-in for Azure Event Hub
- Appendix: Sending Azure Audit logs to Event Hub
This guide outlines how to configure Azure Cloud to export Event Hubs to Fluency.
Open the Microsoft Azure portal, and navigate to the Resource groups page.
Click the + CREATE button to create a new Resource group.
Under Project details, select a Subscription, and give the Resource group a name.
Under Resource details, choose a Region. (Default: East US)
Click Review + Create to continue to the next page.
Create the Resource group.
The Event Hub Namespace will contain one or more Event Hubs. The configured Azure services will create Event Hubs in this namespace to store activity logs and diagnostics logs.
Create an Event Hub Namespace
Wait for deployment to complete.
Navigate to the Event Hub (Namespace) resource created above:
Navigate to Event Hubs, under Entites. Click the + Event Hub button at the top to create a new Event Hub:
Give the Event Hub a name, and choose “Create”:
Select (click on) the newly created Event Hub from the list:
Under Settings, navigate to the Shared access policies:
Add a new Policy for the Fluency integration.
Select the policy to view the Key strings:
Make a note of the Keys shown, especially the “Connection string–primary key”.
Login to the Fluency Cloud portal: https://<companyname>.cloud.fluencysecurity.com.
Open the Main Menu from the upper left-hand corner and choose the “Cloud Import” option under the Configuration section.
On the right hand side of the next page, click the “+ CLOUD CONNECTOR” button to open a drop-down menu with connector options. Select “Azure”
On the following page, enter the “Connection string–primary key” from the previous section, and give the Event Hub integration a short Name/Description:
Click the ADD EVENT HUB button. (Multiple Event Hub connections can be added within the Azure integration.
Click SAVE to finish adding the integration.
Note: At this point, the Event Hub will have no data. The following section will detail the process to
Open the Microsoft Azure portal and select Azure Active Directory > Monitoring > Audit logs
On the Audit Logs page, select Export Data Settings:
Navigate to the Diagnostics settings pane, and choose “+Add diagnostics setting”:
On the following page, Select the desired log categories and choose the “Stream to an event hub” option:
Configure the Event hub settings to match the Namespace and Event Hub created in the previous section. Save and wait for completion.
If no Event hub name is specified above, an Event hub is created in the namespace with the default name **insights-logs-audit**.
After about 15 minutes, verify that events are displayed in your event hub. To do so, go to the event hub from the portal and verify that the incoming messages count is greater than zero.
Events from other sources within Azure can be configured in a similar manner. Refer to the References section for more information.
Follow the Microsoft guides below to configure sources to send to the new Event Hub.
Sources of monitoring data for Azure Monitor describes the different tiers of data for Azure applications and the kinds of monitoring data available for each. The following table lists each of these tiers and a description of how that data can be streamed to an event hub. Follow the links provided for further detail.
|Monitoring data available|
|Azure tenant||Azure Active Directory audit logs||Configure a tenant diagnostic setting on your AAD tenant. See Tutorial: Stream Azure Active Directory logs to an Azure event hub for details.|
|Azure subscription||Azure Activity Log||Create a log profile to export Activity Log events to Event Hubs. See Stream Azure platform logs to Azure Event Hubs for details.|
|Azure resources||<p>Platform metrics |
|Both types of data are sent to an event hub using a resource diagnostic setting. See Stream Azure resource logs to an event hub for details.|
|Operating system (guest)||Azure virtual machines||Install the Azure Diagnostics Extension on Windows and Linux virtual machines in Azure. See Streaming Azure Diagnostics data in the hot path by using Event Hubs for details on Windows VMs and Use Linux Diagnostic Extension to monitor metrics and logs for details on Linux VMs.|
|Application code||Application Insights||Application Insights doesn’t provide a direct method to stream data to event hubs. You can set up continuous export of the Application Insights data to a storage account and then use a Logic App to send the data to an event hub as described in Manual streaming with Logic App.|
A typical event obtained from the Azure Event Hub integration
Page last updated: 2021 Aug 16 16:19 EST