How to get response code when using the Event Hub logger

Ivan Wilson 146 Reputation points
2021-01-15T03:39:33.16+00:00

I need to allow publishers to submit data via a REST API and log them to an Azure Event Hub. We are using API Management for receiving the requests and have a log-to-eventhub policy.

Everything seems to be working, except the publishers are not informed if their message is dropped by the Event Hub. I can't see any way of getting these details. Is it possible?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
{count} votes

Answer accepted by question author
  1. MayankBargali-MSFT 70,986 Reputation points Moderator
    2021-01-29T12:19:50.473+00:00

    Hi @Ivan Wilson

    Apology for the delay.
    I have checked with my team and unfortunately, there is no way to getting the status of log-to-eventhub policy for an individual request.
    You can check the overall evenet metrics under the Monitoring -->Metrics but cannot trace the individual request status.

    61710-image.png


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.