雲端運算平台和基礎結構,可透過 Microsoft 管理的資料中心全球網路來建置、部署和管理應用程式與服務。
Azure OpenAI + Log Analytics – Supported Audit Logs & Setup Guidance
We are planning to integrate our internal system with Azure OpenAI API, and aim to enable auditing and monitoring using Log Analytics.
Could you please confirm whether the following audit items are supported natively through Azure OpenAI diagnostics or logging features?
| Audit Item | Description |
|---|---|
| Who made the request? | Identify which account or system identity (e.g., Managed Identity, Subscription Key) initiated the call |
| Who made the request? | Identify which account or system identity (e.g., Managed Identity, Subscription Key) initiated the call |
| When and from where? | Timestamp and source IP or region |
| What was requested? | Prompt content or API type (e.g., chat, embedding) |
| Which model and how many tokens? | Model name (e.g., GPT-4o) and token usage per request |
| Anomalies detected? | Abuse detection via Azure Defender or throttling/overuse alerts |
| Log retention | Default retention period and how to extend (e.g., to 1–7 years via Storage/Archive) |
If any of these are not directly supported, are there alternative tools or best practices (e.g., API Management, Application Insights, custom logging) to achieve similar visibility?
Additionally, we would greatly appreciate:
Step-by-step setup instructions to enable and query these logs
Links to relevant documentation or sample queries
Any recommended templates or dashboards (e.g., Workbooks)
Thank you for your assistance