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/cdn/monitoring-and-access-log.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,18 +7,19 @@ manager: KumudD
7
7
ms.service: azure-cdn
8
8
ms.tgt_pltfrm: na
9
9
ms.topic: how-to
10
-
ms.date: 11/23/2020
10
+
ms.date: 02/27/2023
11
11
ms.author: yuajia
12
12
ms.custom: devx-track-azurepowershell
13
13
---
14
14
15
15
# Real-time Monitoring, metrics, and access Logs for Azure CDN
16
+
16
17
With Azure CDN from Microsoft, you can monitor resources in the following ways to help you troubleshoot, track, and debug issues.
17
18
18
19
* Raw logs provide rich information about every request that CDN receives. Raw logs differ from activity logs. Activity logs provide visibility into the operations done on Azure resources.
19
20
* Metrics, which display four key metrics on CDN, including Byte Hit Ratio, Request Count, Response Size and Total Latency. It also provides different dimensions to break down metrics.
20
21
* Alert, which allows customer to set up alert for key metrics
21
-
*Additional metrics, which allow customers to use Azure Log Analytics to enable additional metrics of value. We also provide query samples for a few other metrics under Azure Log Analytics.
22
+
*More metrics, which allow customers to use Azure Log Analytics to enable more metrics of value. We also provide query samples for a few other metrics under Azure Log Analytics.
22
23
23
24
> [!IMPORTANT]
24
25
> The HTTP raw logs feature is available for Azure CDN from Microsoft.
@@ -148,12 +149,12 @@ Azure CDN from Microsoft Service currently provides Raw logs. Raw logs provide i
148
149
149
150
| Property | Description |
150
151
| ------------- | ------------- |
151
-
| BackendHostname | If the request is being forwarded to a backend, this field represents the hostname of the backend. This field will be blank if the request gets redirected or forwarded to a regional cache (when caching gets enabled for the routing rule). |
152
+
| BackendHostname | If the request is being forwarded to a backend, this field represents the hostname of the backend. This field is blank if the request gets redirected or forwarded to a regional cache (when caching gets enabled for the routing rule). |
152
153
| CacheStatus | For caching scenarios, this field defines the cache hit/miss at the POP |
153
154
| ClientIp | The IP address of the client that made the request. If there was an X-Forwarded-For header in the request, then the Client IP is picked from the same. |
154
155
| ClientPort | The IP port of the client that made the request. |
155
156
| HttpMethod | HTTP method used by the request. |
156
-
| HttpStatusCode | The HTTP status code returned from the proxy. If a request to the the origin timeout, the value for HttpStatusCode is set to **0**.|
157
+
| HttpStatusCode | The HTTP status code returned from the proxy. If a request to the origin timeouts the value for HttpStatusCode is set to **0**.|
157
158
| HttpStatusDetails | Resulting status on the request. Meaning of this string value can be found at a Status reference table. |
158
159
| HttpVersion | Type of the request or connection. |
159
160
| POP | Short name of the edge where the request landed. |
@@ -181,7 +182,7 @@ The raw log property **isSentToOriginShield** has been deprecated and replaced b
181
182
182
183
Raw logs include logs generated from both CDN edge (child POP) and origin shield. Origin shield refers to parent nodes that are strategically located across the globe. These nodes communicate with origin servers and reduce the traffic load on origin.
183
184
184
-
For every request that goes to origin shield, there are 2-log entries:
185
+
For every request that goes to origin shield, there are two log entries:
185
186
186
187
* One for edge nodes
187
188
* One for origin shield.
@@ -263,12 +264,13 @@ Select **New alert rule** for metrics listed in Metrics section:
263
264
264
265
:::image type="content" source="./media/cdn-raw-logs/raw-logs-08.png" alt-text="Configure alerts for CDN endpoint." border="true":::
265
266
266
-
Alert will be charged based on Azure Monitor. For more information about alerts, see [Azure Monitor alerts](../azure-monitor/alerts/alerts-overview.md).
267
+
Alert is charged based on Azure Monitor. For more information about alerts, see [Azure Monitor alerts](../azure-monitor/alerts/alerts-overview.md).
268
+
269
+
### More Metrics
267
270
268
-
### Additional Metrics
269
-
You can enable additional metrics using Azure Log Analytics and raw logs for an additional cost.
271
+
You can enable more metrics using Azure Log Analytics and raw logs for an extra cost.
270
272
271
-
1. Follow steps above in enabling diagnostics to send raw log to log analytics.
273
+
1. Follow steps in the previous section to enable diagnostics to send raw log to log analytics.
272
274
273
275
2. Select the Log Analytics workspace you created:
0 commit comments