How Can I check error log with Azure Open Ai services

Gin 45 Reputation points
2024-10-14T08:06:54.2666667+00:00

Hello,

I deployed openAI models with Azure OpenAI Studio.

also I made dash board to check Server and Client Errors.

How can I check detail error logs when I find Client Errors in Dash Board ?

I'd like to know each error transaction's time and resaons and how can i get these data with Azure resources.

Best regards,

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,081 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vinodh247 34,661 Reputation points MVP Volunteer Moderator
    2024-10-14T14:35:42.1033333+00:00

    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:

    1. 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.
    1. 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, and errorCode_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.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.