Azure Event Hub Producer
The Azure Event Hub Producer writes data to Microsoft Azure Event Hub.
To write to Microsoft Azure Data Lake Storage, use the Azure Data Lake Storage target. To write to Microsoft Azure IoT Hub, use the Azure IoT Hub Producer target. For information about supported versions, see Supported systems and versions.
When you configure the Azure Event Hub Producer, you specify the Microsoft Azure event hub names and the connection string key to use.
Data formats
The Azure Event Hub Producer target writes data to Microsoft Azure Event Hub
based on the data format that you select. You can use the following data formats:
- Binary
- The stage writes binary data to a single field in the record.
- JSON
- The target writes records as JSON data. You can use one of
the following formats:
- Array - Each file includes a single array. In the array, each element is a JSON representation of each record.
- Multiple objects - Each file includes multiple JSON objects. Each object is a JSON representation of a record.
- SDC Record
- The target writes records in the SDC Record data format.
- Text
- The target writes data from a single text field to the target system. When you configure the stage, you select the field to use.
- XML
- The target creates a valid XML document for each
record. The target requires the record to have a single root field that contains the
rest of the record data. For details and suggestions for how to accomplish this, see Record structure requirement.
The target can include indentation to produce human-readable documents. It can also validate that the generated XML conforms to the specified schema definition. Records with invalid schemas are handled based on the error handling that is configured for the target.