Skip to content

Commit 793de50

Browse files
author
gitName
committed
build validationn
1 parent 35d39b5 commit 793de50

File tree

3 files changed

+4
-23
lines changed

3 files changed

+4
-23
lines changed

articles/api-management/api-management-howto-use-azure-monitor.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -132,27 +132,7 @@ Resource logs (Azure Monitor logs) provide rich information about API Management
132132
> [!NOTE]
133133
> The Consumption tier doesn't support the collection of resource logs.
134134
135-
To configure resource logs:
136-
137-
1. In the [Azure portal](https://portal.azure.com), navigate to your API Management instance.
138-
2. Select **Monitoring** > **Diagnostic settings**.
139-
140-
:::image type="content" source="media/api-management-howto-use-azure-monitor/api-management-diagnostic-logs-blade.png" alt-text="Screenshot of Diagnostic settings item in Monitoring menu in the portal.":::
141-
142-
1. Select **+ Add diagnostic setting**.
143-
1. Select the logs or metrics that you want to collect.
144-
145-
You have several options about where to send the logs and metrics. For example, archive resource logs along with metrics to a storage account, stream them to an event hub, or send them to a Log Analytics workspace.
146-
147-
> [!TIP]
148-
> If you select a Log Analytics workspace, you can choose to store the data in the resource-specific ApiManagementGatewayLogs table or store in the general AzureDiagnostics table. We recommend using the resource-specific table for log destinations that support it. [Learn more](/azure/azure-monitor/essentials/resource-logs#send-to-log-analytics-workspace)
149-
150-
1. After configuring details for the log destination or destinations, select **Save**.
151-
152-
> [!NOTE]
153-
> Adding a diagnostic setting object might result in a failure if the [MinApiVersion property](/dotnet/api/microsoft.azure.management.apimanagement.models.apiversionconstraint.minapiversion) of your API Management service is set to any API version higher than 2022-09-01-preview.
154-
155-
For more information, see [Create diagnostic settings to send platform logs and metrics to different destinations](/azure/azure-monitor/essentials/diagnostic-settings).
135+
[!INCLUDE [api-management-diagonstic-settigs](../../includes/api-management-diagonstic-settings.md)]
156136
157137
## View logs and metrics in Azure Log Analytics
158138

includes/api-management-api-logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: danlep
88

99
When you create a diagnostic setting to enable collection of gateway or LLM resource logs, logging is enabled with default settings, which do not include details of request or responses such as response bodies. You can adjust the logging settings for all APIs, or override them for individual APIs. For example, adjust the sampling rate or the verbosity of the gateway log data, enable logging of LLM request or response messages, or disable logging for some APIs.
1010

11-
For details about the logging settings, see [Diagnostic logging settings reference](diagnostic-logs-reference.md).
11+
For details about the logging settings, see [Diagnostic logging settings reference](../articles/api-management/diagnostic-logs-reference.md).
1212

1313
To configure logging settings for all APIs:
1414

includes/api-management-log-entry-size-limit.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ ms.author: danlep
77
---
88

99
> [!IMPORTANT]
10-
> If enabled in gateway logs, logged request or response payloads can be up to 8,192 bytes. API Management also enforces a 32 KB limit for a diagnostic log entry sent to Azure Monitor, which includes the payloads and other attributes such as status codes, headers, and timestamps. If the combined size of the attributes exceeds 32 KB, API Management trims the entry by removing all body and trace content.
10+
> * If enabled in API Management Gateway logs, logged request or response payloads can be up to 8,192 bytes. API Management also enforces a 32 KB limit for a diagnostic log entry sent to Azure Monitor, which includes the payloads and other attributes such as status codes, headers, and timestamps. If the combined size of the attributes exceeds 32 KB, API Management trims the entry by removing all body and trace content.
11+
> * If enabled in LLM Gateway logs, request or response messages are logged up to 32 KB; messages larger than 32 KB are split and logged in 32 KB chunks including sequence numbers for later reconstruction. Request messages and response messages cannot exceed 2 MB each.

0 commit comments

Comments
 (0)