Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.1 KB

File metadata and controls

23 lines (19 loc) · 1.1 KB
author dlepow
ms.service azure-api-management
ms.topic include
ms.date 02/24/2025
ms.author danlep
ms.custom
build-2025

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:

  1. In the Azure portal, navigate to your API Management instance.

  2. In the left menu, under Monitoring, select Logs.

  3. 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":::