Hi 박진표,
Thanks for reaching out to Microsoft Q&A.
To check detailed error logs for client errors in Azure OpenAI services, you can follow these steps:
- Enable Diagnostic Logs
- Go to the azure portal and navigate to your azure OpenAI resource.
- Under Monitoring, select diagnostic settings.
- Set up a diagnostic setting to send logs to log analytics, storage account, or event hub.
- Make sure to enable logs for categories like RequestResponseLog, which can capture details of individual requests and errors.
- Query Logs in Log Analytics
If you're sending logs to a Log Analytics Workspace, you can use Kusto Query Language (KQL) to filter and find specific client errors:
- Open Log Analytics in the Azure Portal.
- Select your workspace, and then use a query like the following to find detailed logs for client errors. This query will give you a table showing the time of the error, the error type, the status code, and details about the request.
AzureDiagnostics | where ResourceId contains "<YourOpenAIResourceId>" | where Category == "RequestResponseLog" | where statusCode startswith "4" // Client error codes | project TimeGenerated, statusCode, requestUri_s, responseMessage_s, errorType_s, errorCode_s | order by TimeGenerated desc
Summary of Key Details to Retrieve:
- Error Transaction Time: Use the
TimeGenerated
field from Log Analytics. - Error Reasons: Fields like
responseMessage_s
,errorType_s
, anderrorCode_s
provide details about the client error.
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.