How to exclude some URLs from Http server errors 5xx alert signal type

Venkatesh Kacham 6 Reputation points Microsoft Employee
2022-09-27T10:19:39.063+00:00

I have a Alert configured on my Azure App service . The alert signal type is Metric to fire whenever any HTTP Internal server error 5xx occurs . I would like to exclude/skip certain requests with specific URLs from the alerting logic. Is it possible to do it ?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} vote

1 answer

Sort by: Most helpful
  1. ajkuma 28,111 Reputation points Microsoft Employee Moderator
    2022-09-30T08:25:07.56+00:00

    @Venkatesh Kacham , Thanks for the follow-up and additional info.

    These are default metrics and do not need anything to be enabled.

    Well, I understand your requirement.

    Any HTTP 5xx on application would fire this alert. HTTP 500.3 is subset of HTTP 5xx – so, it is expected that alert will be fired.
    There is no provision to exclude certain URL from this alert.

    At this time, one workaround ( as shared on SO)- is to use Diagnostic settings -> Send HTTP raw logs to Log analytics -> Write queries to filter and trigger alert based on your requirement.

    If you wish you may share your feedback on this on our Uservoice - All of the feedback, you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure. Additionally, users with a similar request can up-vote you post and add their comments.

    I’ll also relay the feedback on this internally to our product team.

    --
    To benefit the community find the right answers, please do mark the post which was helpful by clicking on Accept Answer’ & ‘Up-Vote’.

    0 comments No comments

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.