To configure the Azure Event Hub input in your Logstash stack, follow these steps:
Navigate to Stack Settings > Logstash Inputs.
Click on the "Add Input" button in the Logstash configuration wizard.
Select the "Azure Event Hub" option from the available input types.
Complete the configuration details:
Consumer Group: Specify the consumer group used to read the Event Hub(s). Create a consumer group specifically for Logstash.
Storage Connection String: Provide the name of the storage container used to persist offsets and allow multiple instances of Logstash to work together.
Event Hub Connection String - Primary Key: Enter the connection string that identifies the Event Hub to be read. This option accepts only one connection string.
Decorate Events: Enable this option to add metadata about the Event Hub, including Event Hub name, consumer group, processor host, partition, offset, sequence, timestamp, and event size.
Initial Position: When first reading from an Event Hub, start from this position (beginning, end, look_back).
Display Name: Provide a name for the Azure Event Hub input.
Display Description: Add a description for better identification.
Tags: Assign tags to your events (comma-separated).
Type: Add a type field to all events handled by this input.
Add Field: Include additional fields to the events. You can add multiple key-value pairs.
Click the "Configure Input" button to save the Azure Event Hub input configuration.
Click "Cancel" to discard changes.
This guide provides a step-by-step process for configuring an Azure Event Hub input in Logstash. Adjust the values based on your specific use case and preferences.