Azure Event Hubs
Azure Events Hubs is a big data streaming platform and event ingestion service capable of receiving and processing millions of events per second. You can integrate your Apica Ascent instance into your event hubs to transform, analyze, and store data received by them.
Setting up data ingestion from your Azure Event Hubs into Apica Ascent involves the following steps.
Creating an Azure storage account.
Creating an Event Hubs namespace and event hub
Configuring Logstash to forward logs to your Apica Ascent instance
Creating an Azure storage account
To create an Azure storage account, do the following.
Log into your Azure portal and select Storage accounts.
On the Storage accounts page, click Create.
Under Project details on the Basics tab, select the Subscription and Resource group for this new storage account.
Under Instance details, set a unique Storage account name and an appropriate Region.
Click Review + create.
Once the storage account is created, navigate to the Access Keys section.
Click Show keys.
Note down the Key and Connection string under key1.
Creating an Event Hubs namespace and event hub
An Event Hubs namespace provides a unique scoping container within which you can create one or more event hubs. To create an Event Hubs namespace and an event hub within it, do the following.
On your Azure portal, click Create a resource > All services > Event Hubs > Add.
Under the Project Details on the Basics tab of the Create Namespace page, select the Subscription and Resource group for this new Event Hubs namespace.
Under Instance details, provide a Namespace name, select a Location and set the Pricing tier to Standard.
Click Review + create.
Review the configuration, click Create and wait for the namespace to be created.
After the namespace is created, click Go to resource.
Select Event Hubs in the left menu on the namespace page and then click + Event Hub.
Provide a Name for the event hub.
Set Partition Count and Message Retention to 1.
Set Capture to On.
Set Time window (minutes) to 5.
Set Size window (MB) to 300.
Under Capture Provider, select Azure Storage Account.
Click Select Container and select the storage account you created in the previous step.
Click Create.
After the Event Hub is created, navigate to Shared Access Policies.
Select your shared access policy and note down the Primary key and Connection string.
Configuring Logstash to forward logs
The final step is configuring Logstash to forward event logs from your Azure Event Hub to Apica Ascent. Download and store the followingflattenJSON.rb
file. We will use this file while configuring Logstash.
Copy the following Logstash configuration and edit the fields listed in the table below the code.
Last updated