Created on 12-05-201611:49 PM - edited 08-17-201907:40 AM
To post random data to Azure Event hubs using HTTP, use a generate flowfile processor to first generate the random data. Connect this to an UpdateAttribute processor to add your SAS (Share Access Signature) as a new attribute called "Authorization" to the flow file's attributes. Finally use PostHTTP to submit the data to Event Hubs
Place the following processors on the pallet and set the run schedule of the generate flowfile processor to something reasonable like 10 seconds.
Note: I set the content type to text/plain you should set this to suit your use case.
Only the truststore needs to be configured for this example as we only need to trust the server certificates presented to us by the Azure servers. For simplicity I use Java's default keystore. See this post for finding and configuring the SSL service to use this keystore. Otherwise you will need to import trust certificates into your keystore manually
Start all processors and verify successful submissions to the Event Hub Service in the Azure Portal
Background on the security mechanisms of Event Hubs