3

Perhaps a rather simple question, yet I couldn't find the answers after doing some searching.

After I have send an event to an Azure event Hub (via the Java code), how could I check back in the Azure Portal about the event that I have sent ? (so that I could inspect the header and body of the event content for verification).

In the Azure Portal, after I have clicked in the event hub, there is a metric to show the incoming requests, but this only shows the counts, but I would want to inspect the individual event recevied.

once
  • 536
  • 7
  • 21
  • You can refer to [Use Java to receive events from Azure Event Hubs](https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-java-get-started-send#receive-events) and [Sending and Receiving Events from Azure Event Hub](https://www.reddit.com/r/AZURE/comments/phc1l3/sending_and_receiving_events_from_azure_event_hub/) – Ecstasy Oct 08 '21 at 09:52

3 Answers3

3

You can inspect the data on the portal with Azure Stream Analytics test consumer which can be loaded on the entity blade.

enter image description here

Serkant Karaca
  • 1,896
  • 9
  • 8
  • Is there a cost consideration with that approach, Serkant? Does it spin up an ASA resource? – Jesse Squire Oct 09 '21 at 14:24
  • I'm getting the message: "There is no data from input 'myhub'. Please make sure the input source has data and then try again." when I try that – Martin Carlsson Jan 27 '22 at 11:31
  • You can view the data. There is an extra step after creating a Stream Analytics job. It will consume from your EventHub and you can Query this from the Stream Analytics job. To do so, navigate to the actual Azure Page for the Stream Analytics Job. This can be done by selecting it from your Resource Group or from your EventHub -> Process Data -> Stream Analytics jobs -> Open metrics. Then, click Query in the left-hand blade, select the Time Range you'd like to pull data from, and run the query. Your events (1-day retention) will show up. – Parth Parulekar Jul 27 '22 at 23:40
0

To my knowledge, it's not currently possible to inspect Event Hubs events via the portal. To do you, you'd either need to read the events using one of the SDKs or a product like Service Bus Explorer to inspect them.

Jesse Squire
  • 6,107
  • 1
  • 27
  • 30
0

I believe the answer to your question is Azure Monitor. Check out this link and see if it helps.

kevin
  • 338
  • 2
  • 13