502 Bad Gateway Error from Graph API Audit Log End

Emily Parker 0 Reputation points
2025-05-08T10:30:58.6566667+00:00

I'm experiencing an issue with the Graph API when attempting to retrieve audit logs. Starting last week, all requests consistently return a 502 Bad Request error. This functionality was working properly until last month, with no changes made on our end.

 

Technical details:

  • Endpoint: /beta/security/auditLog/queries and /beta/security/auditLog/queries/{id}/records - Current behavior: Always returns 502 Bad Request
  • Previous behavior: Functioned normally until approximately one week ago
  • Timeline: Working correctly until last month, issue began last week and persists to present

 

Here's error message I got

{"error":{"code":"UnknownError","message":"<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n<html xmlns='http://www.w3.org/1999/xhtml'>\n\n<head>\n    <meta content='text/html; charset=utf-8' http-equiv='content-type' />\n    <style type='text/css'>\n        body {\n            font-family: Arial;\n            margin-left: 40px;\n        }\n\n        img {\n            border: 0 none;\n        }\n\n        #content {\n            margin-left: auto;\n            margin-right: auto\n        }\n\n        #message h1 {\n            font-size: 24px;\n            font-weight: normal;\n            color: #000000;\n            margin: 34px 0px 0px 0px\n        }\n\n        #message h2 {\n            font-size: 20px;\n            font-weight: normal;\n            color: #000000;\n            margin: 34px 0px 0px 0px\n        }\n\n        #message p {\n            font-size: 16px;\n            color: #000000;\n            margin: 8px 0px 0px 0px\n        }\n\n        #message hr {\n            margin: 15px 0px\n        }\n\n        #errorref {\n            font-size: 11px;\n            color: #737373;\n            margin-top: 41px\n        }\n    </style>\n    <title>Service unavailable</title>\n</head>\n\n<body>\n    <div id='content'>\n        <div id='message'>\n            <h1>502</h1>\n<h2>search.auditing.trafficmanager.net<span> isn't responding to Azure Front Door</span>\n</h2>\n<hr />\n<p>Bad Gateway</p>\n<p>Azure Front Door wasn't able to connect to the origin. <br> If the problem persists, use the troubleshooting steps to resolve the issue.</p>\n<br />\n<a href="https://learn.microsoft.com/en-us/azure/frontdoor/troubleshoot-issues" target="blank">Azure Documentation</a>\n<br />\n        </div>\n        <div id='errorref'>\n            <span>Error Info:</span><span>DNSNameNotResolved</span><br />\n<span>x-azure-ref ID:</span><span>           </span>\n        </div>\n    </div>\n</body>\n</html>\n"

 

Could you please investigate this issue and advise on possible solutions? If you need any additional information or logs from our implementation, I'm happy to provide them.

 

Thank you for your assistance

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,574 questions
{count} votes

Your answer

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