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/iot-edge/troubleshoot-in-portal.md
+19-11Lines changed: 19 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,44 +26,52 @@ You can access the troubleshooting page in the portal through either the IoT Edg
26
26
27
27
1. Sign in to the [Azure portal](https://portal.azure.com) and navigate to your IoT hub.
28
28
29
-
1. In the left pane,select **Devices** under the **Device management** menu.
29
+
1. In the left pane,select **Devices** under the **Device management** menu.
30
30
31
31
1. Select the IoT Edge device that you want to monitor from the list of devices.
32
32
33
-
1.From the device details page, you can either select **Troubleshoot** from the menu or select the runtime status of a particular module that you want to inspect.
33
+
1.On this device details page, you can either select **Troubleshoot** from the menu.
34
34
35
-

35
+
:::image type="content" source="./media/troubleshoot-in-portal/troubleshoot-tab.png" alt-text="Screenshot of the location of the Troubleshoot tab on the Azure portal, device details page.":::
36
+
37
+
Or, select the runtime status of a particular module that you want to inspect.
38
+
39
+
:::image type="content" source="./media/troubleshoot-in-portal/runtime-status.png" alt-text="Screenshot of the location of the Runtime status column on the Azure portal, device details page.":::
36
40
37
41
1. From the device details page, you can also select the name of a module to open the module details page. From there, you can select **Troubleshoot** from the menu.
38
42
39
-

43
+
:::image type="content" source="./media/troubleshoot-in-portal/troubleshoot-module.png" alt-text="Screenshot of the location of the Troubleshoot tab on the Azure portal, module details page.":::
40
44
41
45
## View module logs in the portal
42
46
43
-
On the **Troubleshoot** page, you can view and download logs from any of the running modules on your IoT Edge device.
47
+
On the **Troubleshoot** page of your device, you can view and download logs from any of the running modules on your IoT Edge device.
44
48
45
49
This page has a maximum limit of 1500 log lines, and any logs longer than that will be truncated. If the logs are too large, the attempt to get module logs will fail. In that case, try to change the time range filter to retrieve less data or consider using direct methods to [Retrieve logs from IoT Edge deployments](how-to-retrieve-iot-edge-logs.md) to gather larger log files.
46
50
47
51
Use the dropdown menu to choose which module to inspect.
48
52
49
-

53
+
:::image type="content" source="./media/troubleshoot-in-portal/select-module.png" alt-text="Screenshot showing how to choose a module from the dropdown menu that you want to inspect.":::
50
54
51
55
By default, this page displays the last fifteen minutes of logs. Select the **Time range** filter to see different logs. Use the slider to select a time window within the last 60 minutes, or check **Enter time instead** to choose a specific datetime window.
52
56
53
-

57
+
:::image type="content" source="./media/troubleshoot-in-portal/select-time-range.png" alt-text="Screenshot showing how to choose a time or time range from the time range popup filter.":::
58
+
59
+
Once you have the logs and set your time filter from the module you want to troubleshoot, you can use the **Find** filter to retrieve specific lines from the logs. You can filter for either warnings or errors, or provide a specific term or phrase to search for.
60
+
61
+
:::image type="content" source="./media/troubleshoot-in-portal/find-filter.png" alt-text="Screenshot showing how to use a dotnet regex pattern to search the logs, using the Find filter.":::
54
62
55
-
Once you have the logs from the module that you want to troubleshoot during the time range that you want to inspect, you can use the **Find** filter to retrieve specific lines from the logs. You can filter for either warnings or errors, or provide a specific term or phrase to search for. The **Find** feature supports plaintext searches or [.NET regular expressions](/dotnet/standard/base-types/regular-expression-language-quick-reference) for more complex searches.
63
+
The **Find** feature supports plaintext searches or [.NET regular expressions](/dotnet/standard/base-types/regular-expression-language-quick-reference) for more complex searches.
56
64
57
-
You can download the module logs as a text file. The downloaded log file will reflect any active filters you have applied to the logs.
65
+
You can download the module logs as a text file. The downloaded log file reflects any active filters you applied to the logs.
58
66
59
67
>[!TIP]
60
-
>The CPU utilization on a device will spike temporarily as it gathers logs in response to a request from the portal. This behavior is expected, and the utilization should stabilize after the task is complete.
68
+
>The CPU utilization on a device spikes temporarily as it gathers logs in response to a request from the portal. This behavior is expected, and the utilization should stabilize after the task is complete.
61
69
62
70
## Restart modules
63
71
64
72
The **Troubleshoot** page includes a feature to restart a module. Selecting this option sends a command to the IoT Edge agent to restart the selected module. Restarting a module won't affect your ability to retrieve logs from before the restart.
65
73
66
-

74
+
:::image type="content" source="./media/troubleshoot-in-portal/restart-module.png" alt-text="Screenshot that shows how to restart a module from the Troubleshoot page.":::
0 commit comments