Skip to content

Commit 2022ea8

Browse files
committed
review-2
1 parent 4c1b003 commit 2022ea8

File tree

9 files changed

+158
-159
lines changed

9 files changed

+158
-159
lines changed
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.monitor-diagnose-and-troubleshoot-azure-storage.4-exercise-storage-metrics
3-
metadata:
4-
title: Exercise - Enable storage metrics and view metric data
5-
description: In this exercise, we'll explore how to enable storage metrics and view metric data.
6-
ms.date: 12/21/2023
7-
author: normesta
8-
ms.author: normesta
9-
ms.topic: unit
10-
title: Exercise - Enabling storage metrics and view metric data
11-
durationInMinutes: 10
12-
azureSandbox: true
13-
content: |
14-
[!include[](includes/4-exercise-storage-metrics.md)]
15-
1+
### YamlMime:ModuleUnit
2+
uid: learn.monitor-diagnose-and-troubleshoot-azure-storage.4-exercise-storage-metrics
3+
metadata:
4+
title: Exercise - Enable storage metrics and view metric data
5+
description: In this exercise, we explore how to enable storage metrics and view metric data.
6+
ms.date: 12/21/2023
7+
author: normesta
8+
ms.author: normesta
9+
ms.topic: unit
10+
title: Exercise - Enabling storage metrics and view metric data
11+
durationInMinutes: 10
12+
azureSandbox: true
13+
content: |
14+
[!include[](includes/4-exercise-storage-metrics.md)]
15+
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.monitor-diagnose-and-troubleshoot-azure-storage.5-storage-logging
3-
metadata:
4-
title: Troubleshoot with storage resource logs
5-
description: In this unit, we'll learn about resource logs and how to route them to various destinations for analysis.
6-
ms.date: 12/21/2023
7-
author: normesta
8-
ms.author: normesta
9-
ms.topic: unit
10-
title: Troubleshoot with storage resource logs
11-
durationInMinutes: 4
12-
content: |
13-
[!include[](includes/5-storage-logging.md)]
14-
1+
### YamlMime:ModuleUnit
2+
uid: learn.monitor-diagnose-and-troubleshoot-azure-storage.5-storage-logging
3+
metadata:
4+
title: Troubleshoot with storage resource logs
5+
description: In this unit, we learn about resource logs and how to route them to various destinations for analysis.
6+
ms.date: 12/21/2023
7+
author: normesta
8+
ms.author: normesta
9+
ms.topic: unit
10+
title: Troubleshoot with storage resource logs
11+
durationInMinutes: 4
12+
content: |
13+
[!include[](includes/5-storage-logging.md)]
14+
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.monitor-diagnose-and-troubleshoot-azure-storage.6-exercise-storage-logging
3-
metadata:
4-
title: Exercise - Route resource logs to Log Analytics and then view log data
5-
description: In this exercise, we'll explore how to route storage resource logs, and then view log data.
6-
ms.date: 12/21/2023
7-
author: normesta
8-
ms.author: normesta
9-
ms.topic: unit
10-
title: Exercise - Route resource logs to Log Analytics and then view log data
11-
durationInMinutes: 8
12-
azureSandbox: true
13-
content: |
14-
[!include[](includes/6-exercise-storage-logging.md)]
15-
1+
### YamlMime:ModuleUnit
2+
uid: learn.monitor-diagnose-and-troubleshoot-azure-storage.6-exercise-storage-logging
3+
metadata:
4+
title: Exercise - Route resource logs to Log Analytics and then view log data
5+
description: In this exercise, we explore how to route storage resource logs, and then view log data.
6+
ms.date: 12/21/2023
7+
author: normesta
8+
ms.author: normesta
9+
ms.topic: unit
10+
title: Exercise - Route resource logs to Log Analytics and then view log data
11+
durationInMinutes: 8
12+
azureSandbox: true
13+
content: |
14+
[!include[](includes/6-exercise-storage-logging.md)]
15+

learn-pr/azure/monitor-diagnose-and-troubleshoot-azure-storage/includes/2-storage-troubleshooting-tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Storage insights provide a unified view of your Azure Storage services performan
3939

4040
You can process metric values by creating batch jobs in Azure CLI, PowerShell scripts, or by writing code that uses a storage client library. You can also archive transaction metrics to a storage account, and then view or process them by using these same tools.
4141

42-
If you choose to archive transaction metrics to a storage account, metric data is collected and stored inside a single blob as a line-delimited JSON payload. You can view those blobs by opening the relevant log container in the Azure portal or by using [Azure Storage Explorer](https://azure.microsoft.com/features/storage-explorer/). You can also download those blobs to your local computer and process them by using tools and SDKs.
42+
If you choose to archive transaction metrics to a storage account, metric data is collected and stored inside a single blob as a line-delimited JSON payload. You can view those blobs by opening the relevant log container in the Azure portal or by using [Azure Storage Explorer](https://azure.microsoft.com/features/storage-explorer/). You can also download those blobs to your local computer and process them by using tools and Software Development Kits (SDKs).
4343

4444
## Tools available for reviewing log data
4545

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
In this exercise, we'll use Azure portal and PowerShell to configure storage metrics for our storage account. We'll upload some files to Blob Storage, and then look at metrics in Metrics Explorer.
1+
In this exercise, we use the Azure portal to create a storage account and configure storage metrics. Next, we upload some files to Blob Storage, and then look at our storage metrics in Metrics Explorer.
22

33
## Create a storage account
44

55
1. Select [this link](https://portal.azure.com/learn.docs.microsoft.com?azure-portal=true) to sign in to the Azure portal by using the same account with which you activated the sandbox.
66

7-
2. In the Azure portal, select **Create a resource**.
7+
1. In the Azure portal, select **Create a resource**.
88

9-
3. In the **Search services and Marketplace** box, search for and select **Storage account**.
9+
1. In the **Search services and Marketplace** box, search for and select **Storage account**.
1010

1111
The **Storage account** panel appears.
1212

13-
4. Select **Create**.
13+
1. Select **Create**.
1414

15-
The **Create storage account** panel appears.
15+
The **Create a storage account** panel appears.
1616

17-
5. On the **Basics** tab, fill in the following values for each setting.
17+
1. On the **Basics** tab, fill in the following values for each setting.
1818

1919
| Setting | Value |
2020
|---|---|
@@ -27,21 +27,21 @@ In this exercise, we'll use Azure portal and PowerShell to configure storage met
2727
| Performance | **Standard** |
2828
| Redundancy | **Geo-redundant storage (GRS)** |
2929

30-
6. Select the **Advanced** tab. In the **Blob storage** section, make sure that **access tier** is set to **Hot**.
30+
1. Select the **Advanced** tab. In the **Blob storage** section, make sure that **access tier** is set to **Hot**.
3131

32-
7. Select **Review**. After validation passes, select **Create**.
32+
1. Select **Review + Create**. After validation passes, select **Create**.
3333

34-
8. On the **Your deployment is complete** panel, select **Go to resource**.
34+
1. When you see the message **Your deployment is complete**, select **Go to resource**.
3535

3636
## Add a blob container
3737

3838
Before you can add blobs to a storage account, you need to create a blob container.
3939

40-
1. Under **Data storage**, select **Containers**.
40+
1. In the menu pane, under **Data storage**, select **Containers**.
4141

42-
2. In the **Containers** panel, select **+ Container**.
42+
1. In the **Containers** tool bar, select **+ Add container**.
4343

44-
3. In the **Name** field, enter **monitor-blobs-container**, then select **Create**.
44+
1. In the **Name** field, enter **monitor-blobs-container**, then select **Create**.
4545

4646
## Upload files to the blob container
4747

@@ -63,19 +63,19 @@ To upload a single file to the blob container:
6363

6464
## Visualize metrics in the Azure portal
6565

66-
Transaction metrics are emitted on every request to a storage account, so you should see changes in these values relatively quickly. To create a transaction metrics chart, complete the following steps:
66+
Transaction metrics are emitted on every request to a storage account, so you should see changes in these values fairly quickly. To create a transaction metrics chart, complete the following steps:
6767

6868
1. In the Azure portal, navigate to the page for your storage account.
6969

70-
2. In the menu pane, under **Monitoring**, select **Metrics**.
70+
1. In the menu pane, under **Monitoring**, select **Metrics**.
7171

72-
3. In the top right, select **Last hour** for the time range.
72+
1. In the top right, select **Last hour** for the time range.
7373

74-
4. Under **Time granularity**, select **Automatic**, then select **Apply**.
74+
1. Under **Time granularity**, select **Automatic**, then select **Apply**.
7575

76-
5. On the bar that appears beneath the chart title, select **Line chart**, and then **Bar chart**.
76+
1. On the bar that appears beneath the chart title, select **Line chart**, and then **Bar chart**.
7777

78-
6. Change the **metric namespace** to **Blob** and select **Ingress** for the **metric**.
78+
1. Change the **metric namespace** to **Blob** and select **Ingress** for the **Metric**.
7979

8080
The following image shows a bar for every file upload operation in the last hour.
8181

@@ -84,11 +84,11 @@ Transaction metrics are emitted on every request to a storage account, so you sh
8484
8585
## Split a metric
8686

87-
Splitting a metric lets you view additional dimensions in the data. For each file that you uploaded, the Azure portal made several API calls. Each request resulted in bytes transferred. You can split the ingress metric by the API dimension to see the breakdown of bytes transferred by API call. To split a metric, complete the following steps:
87+
Splitting a metric lets you view other dimensions in the data. For each file that you uploaded, the Azure portal made several API calls. Each request resulted in bytes transferred. You can split the ingress metric by the API dimension to see the breakdown of bytes transferred by API call. To split a metric, complete the following steps:
8888

89-
1. Select **Apply splitting**
89+
1. Select **Apply splitting**.
9090

91-
2. In the **Splitting** oval, from the drop-down list, select **API name**.
91+
1. In the **Splitting** box, from the **Values** drop-down list, select **API name**.
9292

9393
View the output in the chart window. The following image shows bytes transferred by API call.
9494

@@ -101,13 +101,13 @@ Filtering lets you look at the metrics with greater granularity. You can use a f
101101

102102
1. Select **Add filter**.
103103

104-
2. Under **Property**, select **API name**.
104+
1. Under **Property**, select **API name**.
105105

106-
3. Under **Values**, select **PutBlob**.
106+
1. Under **Values**, select **PutBlob**.
107107

108-
The chart shows bars that represent the REST call to the **Put Blob** API.
108+
The chart shows bars that represent the REST call to the **PutBlob** API.
109109

110110
> [!div class="mx-imgBorder"]
111111
> ![Screenshot of a bar chart showing put operations associated with the upload in Metrics Explorer.](../media/4-bar-chart-option-put-operations.png)
112112
113-
4. Select the **X** to the right of the filter oval to remove the filter.
113+
1. Select the **X** to the right of the filter box to remove the filter.

learn-pr/azure/monitor-diagnose-and-troubleshoot-azure-storage/includes/5-storage-logging.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,47 @@
1-
Azure Storage resource logs capture each operation performed in your storage account, as well as the outcome of these operations. These logs provide details about each request made rather than providing the minute-by-minute summary of operations that the metrics show. Using the logging information, you can examine the nature of requests made to a storage account and determine whether these requests are successful.
1+
Azure Storage resource logs capture each operation performed in your storage account and the outcome of these operations. These logs provide details about each request made rather than providing the minute-by-minute summary of operations that the metrics show. Using the logging information, you can examine the nature of requests made to a storage account and determine whether these requests are successful.
22

3-
In this unit, you'll learn about Azure Storage resource logs in Azure Monitor. You'll see the different types of information captured in logs, and how you might use this information to detect problems that might occur when an application uses Azure Storage.
3+
In this unit, you learn about Azure Storage resource logs in Azure Monitor. You see the different types of information captured in logs, and learn how you can use this information to detect problems that might occur when an application uses Azure Storage.
44

55
## Resource Logs in Azure Monitor
66

7-
Sometimes you want to see more detail about storage transactions than performance-related metrics. Metrics are useful for tracking overall trends in performance or demand, but monitoring the transaction metrics can't reveal the requested URLs. Also, none of the available storage metrics can give error messages that relate to a specific request.
7+
Sometimes you want to see more detail about storage transactions than performance-related metrics. Metrics are useful for tracking overall trends in performance or demand, but monitoring the transaction metrics can't reveal the requested URLs. Also, none of the available storage metrics can report error messages that relate to a specific request.
88

99
Resource logs in Azure Monitor capture this kind of detailed information, and they're useful for examining the detail behind specific requests. For example, you can use these logs if you want to know how many requests for a specific resource are authenticated or anonymous, or successful, or failed.
1010

1111
To collect resource logs, you must create a diagnostic setting. Resource logs list successful and failed requests for a storage account. Requests are recorded as read, write, or delete operations against the specific storage service: Azure Blob Storage, Table Storage, or Queue Storage. By using a diagnostic setting, you can route logs to Log Analytics, a storage account, or stream them to an event hub or to a partner solution.
1212

13-
You can use resource logs to review different types and frequency of requests, or to troubleshoot failed requests. Logs are generated only when transactions occur, and only for the specific service endpoint. Therefore, if you're using storage in the Blob Storage and Queue Storage endpoints, but only the Blob Storage endpoint has requests or transactions, then the system will create logs only for Blob Storage.
13+
You can use resource logs to review different types and frequency of requests, or to troubleshoot failed requests. Logs are generated only when transactions occur, and only for the specific service endpoint. Therefore, if you're using storage in the Blob Storage and Queue Storage endpoints, but only the Blob Storage endpoint has requests or transactions, then the system creates logs only for Blob Storage.
1414

1515
When you enable logging, these types of requests are logged:
1616

17-
* Authenticated requests
18-
* Anonymous requests
19-
* Successful requests
20-
* Failed requests, such as timeouts, throttling, network errors, and authorization errors
21-
* Server errors
22-
* Requests that use a shared access signature, both failed and successful
23-
* Timeout errors for client and server
24-
* Requests to analytics data
25-
* GET requests with error code 304 ("Not Modified")
17+
- Authenticated requests.
18+
- Anonymous requests.
19+
- Successful requests.
20+
- Failed requests. Such as, timeouts, throttling, network errors, and authorization errors.
21+
- Server errors.
22+
- Requests that use a shared access signature, both failed and successful.
23+
- Timeout errors for client and server.
24+
- Requests to analytics data.
25+
- Failed GET requests with error code 304 ("Not Modified").
2626

2727
## Storage of resource logs in Azure Monitor
2828

2929
Resource logs are automatically generated for your storage account, but those logs aren't available to view unless you send them to a destination. You can specify where to send them by using a diagnostic setting.
3030

31-
When you create a diagnostic setting, you choose the type of storage for which you're interested in routing logs (for example: Blob Storage or File Storage). Then, you'll choose which types of operations you want to appear in logs (for example: read, write, or delete operations). Finally, you'll choose where you would like logs to be sent. You can send log to any of these locations:
31+
When you create a diagnostic setting, you choose the type of storage for which you're interested in routing logs. For example, Blob Storage or File Storage. Then, you choose which types of operations you want to appear in the logs. For example, read, write, or delete operations. Finally, you choose where you would like logs to be sent. You can send logs to any of these locations:
3232

33-
* Log Analytics
34-
35-
* Storage account
36-
37-
* Event hub
38-
39-
* A partner solution
33+
- Log Analytics
34+
- Storage account
35+
- Event hub
36+
- A partner solution
4037

4138
You can access logs sent to a Log Analytics workspace by using Azure Monitor log queries.
4239

4340
If you route logs to a storage account, those logs appear as blobs stored to a container. Data is collected and stored inside a single blob as a line-delimited JSON payload. The name of the blob follows this naming convention:
4441

4542
`https://<destination-storage-account>.blob.core.windows.net/insights-logs-<storage-operation>/resourceId=/subscriptions/<subscription-ID>/resourceGroups/<resource-group-name>/providers/Microsoft.Storage/storageAccounts/<source-storage-account>/blobServices/default/y=<year>/m=<month>/d=<day>/h=<hour>/m=<minute>/PT1H.json`
4643

47-
Logs sent to an event hub aren't stored as a file, but you can verify that the event hub received the log information by opening your event hub in the Azure portal and examining the incoming messages count.
44+
Logs sent to an event hub aren't stored as a file, but you can verify that the event hub received the log information. Just open your event hub in the Azure portal and examining the count of incoming messages.
4845

4946
You can also send platform metrics and logs to certain Azure Monitor partners. You must first install a partner integration into your subscription. Configuration options vary by partner.
5047

0 commit comments

Comments
 (0)