Micah Zoltu
Micah Zoltu

Reputation: 7422

How can I filter my Azure WebJob function call history by failure?

I have an Azure WebJob built using the Azure Web Jobs SDK. It consumes messages off of a queue and produces messages on another queue. It has thousands of successes and a handful of failures. Unfortunately, the only way I can find too look back over the function calls is by paging through all of them.

enter image description here

Is there some way I can get a list of the failures and get additional details about them such as what was logged or what exception was thrown?

Upvotes: 2

Views: 718

Answers (1)

lopezbertoni
lopezbertoni

Reputation: 3641

An option is to log/save the message that failed and then retry it with your debugger attached to the webjob.

Also, Whatever is written to console output and console error will go to a log file for the specific triggered webjob run. So before throwing an exception in your try/catch block make sure you log the exception with the details so that you can acceess it later via FTP or the UI.

Here are the details on how/where is everything logged in azure websites. You can access the logs via FTP.

You can also access the information via the REST API. Details here.

Hope this helps,

Upvotes: 1

Related Questions