You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/api-management/api-management-howto-use-azure-monitor.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,7 +179,7 @@ For more information about using resource logs for API Management, see:
179
179
180
180
## Modify API logging settings
181
181
182
-
By default, when you create a diagnostic setting to enable collection of resource logs, logging is enabled for all APIs, with default settings. 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 data, or disable logging for some APIs.
182
+
By default, when you create a diagnostic setting to enable collection of resource logs, logging is enabled for all APIs, with default settings. 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 data, enable logging of headers or request or response payloads, or disable logging for some APIs.
183
183
184
184
For details about the logging settings, see [Diagnostic logging settings reference](diagnostic-logs-reference.md).
185
185
@@ -188,16 +188,17 @@ To configure logging settings for all APIs:
188
188
1. In the left menu of your API Management instance, select **APIs** > **All APIs**.
189
189
1. Select the **Settings** tab from the top bar.
190
190
1. Scroll down to the **Diagnostic Logs** section, and select the **Azure Monitor** tab.
191
-
1. Review the settings and make changes if needed. For example, adjust the sampling rate or verbosity of the logs, or enable logging of headers or request or response payloads. Select **Save**.
191
+
1. Review the settings and make changes if needed. Select **Save**.
192
192
193
193
To configure logging settings for a specific API:
194
194
195
195
1. In the left menu of your API Management instance, select **APIs** and then the name of the API.
196
196
1. Select the **Settings** tab from the top bar.
197
197
1. Scroll down to the **Diagnostic Logs** section, and select the **Azure Monitor** tab.
198
-
1. Review the settings and make changes if needed. For example, adjust the sampling rate or verbosity of the logs, or enable logging of headers or request or response payloads. Select **Save**.
198
+
1. Review the settings and make changes if needed. Select **Save**.
Copy file name to clipboardExpand all lines: articles/api-management/diagnostic-logs-reference.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,13 @@ This reference describes settings for API diagnostics logging from an API Manage
35
35
| Verbosity || Specifies the verbosity of the logs and whether custom traces that are configured in [trace](trace-policy.md) policies are logged. <br/><br/>* Error - failed requests, and custom traces of severity `error`<br/>* Information - failed and successful requests, and custom traces of severity `error` and `information`<br/> * Verbose - failed and successful requests, and custom traces of severity `error`, `information`, and `verbose`<br/><br/>Default: Information |
36
36
| Correlation protocol || Specifies the protocol used to correlate telemetry sent by multiple components to Application Insights. Default: Legacy <br/><br/>For information, see [Telemetry correlation in Application Insights](../azure-monitor/app/distributed-tracing-telemetry-correlation.md). |
37
37
| Headers to log | list | Specifies the headers that are logged for requests and responses. Default: no headers are logged. |
38
-
| Number of payload (body) bytes to log| integer | Specifies the number of initial bytes of the frontend request or response body or backend request or response body that are logged. Maximum: 8,192. Default: 0<br/><br/> [!INCLUDE [api-management-log-entry-size-limit](../../includes/api-management-log-entry-size-limit.md)]|
38
+
| Number of payload (body) bytes to log<sup>*</sup>| integer | Specifies the number of initial bytes of the frontend or backend request or response body that are logged. Maximum: 8,192. Default: 0 |
39
39
| Frontend Request || Specifies whether and how *frontend requests* (requests incoming to the API Management gateway) are logged.<br/><br/> If this setting is enabled, specify **Headers to log**, **Number of payload bytes to log**, or both. |
40
40
| Frontend Response || Specifies whether and how *frontend responses* (responses outgoing from the API Management gateway) are logged.<br/><br/> If this setting is enabled, specify **Headers to log**, **Number of payload bytes to log**, or both. |
41
41
| Backend Request || Specifies whether and how *backend requests* (requests outgoing from the API Management gateway) are logged.<br/><br/> If this setting is enabled, specify **Headers to log**, **Number of payload bytes to log**, or both. |
42
-
| Backend Response | | Specifies whether and how *backend responses* (responses incoming to the API Management gateway) are logged. <br/><br/> If this setting is enabled, specify **Headers to log**, **Number of payload bytes to log**, or both.
42
+
| Backend Response | | Specifies whether and how *backend responses* (responses incoming to the API Management gateway) are logged. <br/><br/> If this setting is enabled, specify **Headers to log**, **Number of payload bytes to log**, or both.
Copy file name to clipboardExpand all lines: includes/api-management-log-entry-size-limit.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,5 +5,5 @@ ms.topic: include
5
5
ms.date: 05/15/2024
6
6
ms.author: danlep
7
7
---
8
-
> [!IMPORTANT]
9
-
> When logging large request or response payloads, consider both the payload (body) size limit and API Management's log entry limit of 32 KB. The API Management log entry includes other attributes such as status codes, headers, URLs, and timestamps. If a log entry could exceed the limit, API Management trims it by removing all body and trace content. An entry that still exceeds the limit is dropped.
8
+
9
+
When logging large request or response payloads, consider both the payload (body) size limit and API Management's log entry limit of 32 KB. The API Management log entry includes other attributes such as status codes, headers, URLs, and timestamps. If a log entry could exceed the limit, API Management trims it by removing all body and trace content before sending to Azure Monitor. An entry that still exceeds the limit is dropped.
0 commit comments