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/network-watcher/vnet-flow-logs-tutorial.md
+37-35Lines changed: 37 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Virtual network flow logging is a feature of Azure Network Watcher that allows y
17
17
18
18
This tutorial helps you use VNet flow logs to log a virtual machine's network traffic that flows through the virtual network.
19
19
20
-
:::image type="content" source="./media/nsg-flow-logs-tutorial/nsg-flow-logs-tutorial-diagram.png" alt-text="Diagram shows the resources created during the tutorial.":::
20
+
:::image type="content" source="./media/vnet-flow-logs-tutorial/flow-logs-tutorial-diagram.png" alt-text="Diagram shows the resources created during the tutorial.":::
21
21
22
22
In this tutorial, you learn how to:
23
23
@@ -64,7 +64,7 @@ In this section, you create **myVM** virtual machine.
64
64
65
65
1. In the search box at the top of the portal, enter ***virtual machines***. Select **Virtual machines** from the search results.
66
66
67
-
1. Select **+ Create** and then select **Azure virtual machine**.
67
+
1. Select **+ Create** and then select **Virtual machine**.
68
68
69
69
1. In **Create a virtual machine**, enter or select the following values in the **Basics** tab:
70
70
@@ -78,8 +78,8 @@ In this section, you create **myVM** virtual machine.
| Flow Log Name | Leave the default of **myVNet-myresourcegroup-flowlog**. |
176
178
|**Instance details**||
177
179
| Subscription | Select the Azure subscription of your storage account. |
178
-
| Storage Accounts| Select the storage account you created in the previous steps. This tutorial uses **mynwstorageaccount**. |
179
-
| Retention (days) | Enter ***0*** to retain the flow logs data in the storage account forever (until you delete it from the storage account). To apply a retention policy, enter the retention time in days. For information about storage pricing, see [Azure Storage pricing](https://azure.microsoft.com/pricing/details/storage/). |
180
+
| Storage accounts| Select the storage account you created in the previous steps. |
181
+
| Retention (days) | Enter ***10*** to retain the flow logs data in the storage account for 10 days. To keep the flow logs data in the storage account forever (until you delete it), enter ***0***. For information about storage pricing, see [Azure Storage pricing](https://azure.microsoft.com/pricing/details/storage/). |
180
182
181
-
:::image type="content" source="./media/nsg-flow-logs-tutorial/create-nsg-flow-log.png" alt-text="Screenshot of create NSG flow log page in the Azure portal.":::
183
+
:::image type="content" source="./media/vnet-flow-logs-tutorial/create-vnet-flow-log.png" alt-text="Screenshot of create a flow log page in the Azure portal." lightbox="./media/vnet-flow-logs-tutorial/create-vnet-flow-log.png":::
182
184
183
185
> [!NOTE]
184
-
> The Azure portal creates NSG flow logs in the **NetworkWatcherRG** resource group.
186
+
> The Azure portal creates virtual network flow logs in the **NetworkWatcherRG** resource group.
185
187
186
188
1. Select **Review + create**.
187
189
188
190
1. Review the settings, and then select **Create**.
189
191
190
192
1. Once the deployment is complete, select **Go to resource** to confirm the flow log created and listed in the **Flow logs** page.
191
193
192
-
:::image type="content" source="./media/nsg-flow-logs-tutorial/flow-logs-list.png" alt-text="Screenshot of Flow logs page in the Azure portal showing the newly created flow log." lightbox="./media/nsg-flow-logs-tutorial/flow-logs-list.png":::
194
+
:::image type="content" source="./media/vnet-flow-logs-tutorial/flow-logs-list.png" alt-text="Screenshot of Flow logs page in the Azure portal showing the newly created flow log." lightbox="./media/vnet-flow-logs-tutorial/flow-logs-list.png":::
193
195
194
196
1. Go back to your RDP session with **myVM** virtual machine.
195
197
@@ -201,21 +203,21 @@ In this section, you go to the storage account you previously selected and downl
201
203
202
204
1. In the search box at the top of the portal, enter ***storage accounts***. Select **Storage accounts** from the search results.
203
205
204
-
2. Select **mynwstorageaccount** or the storage account you previously created and selected to store the logs.
206
+
2. Select **nwteststorageaccount** or the storage account you previously created and selected to store the logs.
205
207
206
208
3. Under **Data storage**, select **Containers**.
207
209
208
-
4. Select the **insights-logs-networksecuritygroupflowevent** container.
210
+
4. Select the **insights-logs-flowlogflowevent** container.
209
211
210
-
5. In the container, navigate the folder hierarchy until you get to the `PT1H.json` file. NSG log files are written to a folder hierarchy that follows the following naming convention:
212
+
5. In the container, navigate the folder hierarchy until you get to the `PT1H.json` file that you want to download. Virtual network flow log files follow the following path::
6. Select the ellipsis **...** to the right of the PT1H.json file, then select **Download**.
217
219
218
-
:::image type="content" source="./media/nsg-flow-logs-tutorial/nsg-log-file.png" alt-text="Screenshot showing how to download nsg flow log from the storage account container in the Azure portal." lightbox="./media/nsg-flow-logs-tutorial/nsg-log-file.png":::
220
+
:::image type="content" source="./media/vnet-flow-logs-tutorial/flow-log-file.png" alt-text="Screenshot showing how to download VNet flow log data from the storage account in the Azure portal." lightbox="./media/vnet-flow-logs-tutorial/flow-log-file.png":::
219
221
220
222
> [!NOTE]
221
223
> You can use Azure Storage Explorer to access and download flow logs from your storage account. Fore more information, see [Get started with Storage Explorer](../vs-azure-tools-storage-manage-with-storage-explorer.md).
@@ -226,22 +228,22 @@ Open the downloaded `PT1H.json` file using a text editor of your choice. The fol
|1677455097| Time stamp | The time stamp of when the flow occurred in UNIX EPOCH format. In the previous example, the date converts to February 26, 2023 11:44:57 PM UTC/GMT. |
260
+
|1754512773| Time stamp | The time stamp of when the flow occurred in UNIX EPOCH format. In the previous example, the date converts to February 26, 2023 11:44:57 PM UTC/GMT. |
259
261
| 10.0.0.4 | Source IP address | The source IP address that the flow originated from. 10.0.0.4 is the private IP address of the VM you previously created.
260
262
| 13.107.21.200 | Destination IP address | The destination IP address that the flow was destined to. 13.107.21.200 is the IP address of `www.bing.com`. Since the traffic is destined outside Azure, the security rule **DefaultRule_AllowInternetOutBound** processed the flow. |
261
263
| 49982 | Source port | The source port that the flow originated from. |
@@ -282,7 +284,7 @@ When no longer needed, delete **myResourceGroup** resource group and all of the
282
284
1. Select **Delete** to confirm the deletion of the resource group and all its resources.
283
285
284
286
> [!NOTE]
285
-
> The **myVM-nsg-myResourceGroup-flowlog**flow log is in the **NetworkWatcherRG** resource group, but it'll be deleted after deleting the **myVM-nsg**network security group (by deleting the **myResourceGroup** resource group).
287
+
> The **NetworkWatcher_eastus/myVNet-myresourcegroup-flowlog**resource is in the **NetworkWatcherRG** resource group, but it'll be deleted after deleting the **myVNet**virtual network (by deleting the **myResourceGroup** resource group).
0 commit comments