Hi Team,
How to call an Event Hub When the Error/Success Message Occurred in the Functions?
Hi Team,
How to call an Event Hub When the Error/Success Message Occurred in the Functions?
@venkatahanumanchowdarysomepalli-8544 ,
Following up to see if my answer helps. Do let us know if you have any queries.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.
@venkatahanumanchowdarysomepalli-8544 ,
Thanks for reaching out to the Microsoft Q&A forum.
You can call/send events to eventhub using the eventhub output bindings in Functions or by using the Eventhub sdk in the function code. For the error/success handling, you may use a try/catch block in the function code and in case of failure you can catch the exception and send events to the eventhub.
I hope this helps! Feel free to reach out to me if you have any further queries.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.
@venkatahanumanchowdarysomepalli-8544 , Following up to see if the above answer helps. Do let us know if you have any queries.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.
This article here from 2019 mentions a way to send the Logs to an azure Event Hub, but I couldn't find an implementation or example anywhere:
https://azure.microsoft.com/en-in/updates/azure-functions-integration-with-azure-monitor-logs-is-now-in-public-preview/
How can we replace or configure ILogger, to log to Event Hub?
The question is not clarified by the suggested answers :/
21 people are following this question.