Skip to content

Latest commit

 

History

History
55 lines (45 loc) · 2.9 KB

File metadata and controls

55 lines (45 loc) · 2.9 KB

azure_event_hub_input operator

The azure_event_hub_input operator reads logs from Azure Event Hub using Azure's SDK

The azure_event_hub_input operator will use the EnqueuedTime field of the event as the parsed entry's timestamp. If EnqueuedTime is not set, azure_event_hub_input will use IoTHubEnqueuedTime if it is set. All other fields are added to the entry's record.

Configuration Fields

Field Default Description
id azure_event_hub_input A unique identifier for the operator
output Next in pipeline The connected operator(s) that will receive all outbound entries
namespace required The Event Hub Namespace
name required The Event Hub Name
group required The Event Hub Consumer Group
connection_string required The Event Hub connection string
prefetch_count 1000 Desired number of events to read at one time
start_at end At startup, where to start reading events. Options are beginning or end

Example Configurations

Simple Azure Event Hub input

Configuration:

pipeline:
- type: azure_event_hub_input
  namespace: stanza
  name: devel
  group: Default
  connection_string: 'Endpoint=sb://stanza.servicebus.windows.net/;SharedAccessKeyName=dev;SharedAccessKey=supersecretkey;EntityPath=devel'
  start_at: end

Example Output

A list of potential keys and their purpose can be found here. Event Hub system_properties documentation can be found here

{
  "timestamp": "2021-04-19T18:44:34.619Z",
  "severity": 0,
  "resource": {
    "event_id": "fea3c182-00a6-4951-8f6f-9331031f978f"
  },
  "record": {
    "message": "hello, world!",
    "system_properties": {
      "x-opt-enqueued-time": "2021-04-19T18:44:34.619Z",
      "x-opt-offset": 6120,
      "x-opt-sequence-number": 51
    }
  }
}