Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st. We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here. Need help or have questions? Drop us a line at [email protected]
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