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
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: dlepow
7
7
ms.service: api-management
8
8
ms.custom: engagement-fy23, devdivchpfy22
9
9
ms.topic: tutorial
10
-
ms.date: 06/27/2023
10
+
ms.date: 05/15/2024
11
11
ms.author: danlep
12
12
---
13
13
# Tutorial: Monitor published APIs
@@ -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,14 +188,16 @@ 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. 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. 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
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: dlepow
6
6
7
7
ms.service: api-management
8
8
ms.topic: reference
9
-
ms.date: 11/18/2022
9
+
ms.date: 05/15/2024
10
10
ms.author: danlep
11
11
ms.custom: engagement-fy23
12
12
---
@@ -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 bytes to log| integer | Specifies the number of initial bytes of the body that are logged for requests and responses. Maximum: 8,192. Default: 0|
38
+
| Number of payload (body) bytes to log| 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.
> If enabled, 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.
0 commit comments