| author | dlepow | |
|---|---|---|
| ms.service | azure-api-management | |
| ms.topic | include | |
| ms.date | 02/24/2025 | |
| ms.author | danlep | |
| ms.custom |
|
If you enable collection of logs or metrics in a Log Analytics workspace, it can take a few minutes for data to appear in Azure Monitor and the Azure Monitor-based dashboard for API Management (Monitoring > Analytics blade).
To view the data:
-
In the Azure portal, navigate to your API Management instance.
-
In the left menu, under Monitoring, select Logs.
-
Run queries to view the data. Several sample queries are provided, or run your own. For example, the following query retrieves the most recent 24 hours of data from the ApiManagementGatewayLogs table:
ApiManagementGatewayLogs | where TimeGenerated > ago(1d)
:::image type="content" source="media/api-management-log-analytics/query-resource-logs.png" alt-text="Screenshot of querying ApiManagementGatewayLogs table in the portal." lightbox="media/api-management-log-analytics/query-resource-logs.png":::