User Header filter from Kafka enabled Azure eventhub using Azure Stream Analytics query

K S Devadoss, Vishnu Kumar 20 Reputation points
2024-02-09T03:25:34.3766667+00:00

I have a Kafka enabled azure eventhub where am publishing the data from my client application. To publish i use the confluent kafka dot net package.

Each message has a User header (message headers). The Eventhub has 10 partitions. Multiple tenants (5) data are published to this eventhub across the partition.

In user header, have the key called TenantId which holds the tenant id value.

Through Stream Analytics Job i want to filter the specific tenant from the User Header and push to different Output. You can consider pushing it to another eventhub as well.

I see we can us "GetMetadataPropertyValue" function to pass it. But always it returns null only. But am sure that I have header value which i verified from Service Bus explorer.

Even ASA extension in VS Code also I tried it tells that "Cannot edit in read-only editor".
Could you guide me the right path how to achieve this.

  • Note: We do not want to go with Tenant specific Eventhub as per design.
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
557 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
330 questions
{count} votes

1 answer

Sort by: Most helpful
  1. K S Devadoss, Vishnu Kumar 20 Reputation points
    2024-03-01T08:30:50.6033333+00:00

    Hi @PRADEEPCHEEKATLA-MSFT and @Sander van de Velde ,

    Just for the follow up on the current status. Do we have any way to filter it from the header?
    Could you validate and guide on the right path in case if anything am i missing from my end.Thanks!!!

    0 comments No comments