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/azure-web-pubsub/howto-troubleshoot-resource-logs.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,29 +18,29 @@ There are three types of resource logs: _Connectivity_, _Messaging_, and _HTTP r
18
18
19
19
-**Connectivity** logs provide detailed information for Azure Web PubSub hub connections. They might include basic information like user ID and connection ID, or event information like connect and disconnect.
20
20
-**Messaging** logs provide tracing information for hub messages that are sent or received via Azure Web PubSub service, like the tracing ID or message type.
21
-
-**HTTP request** logs provide tracing information for HTTP requests to the Azure Web PubSub service, like HTTP method or status code. Typically a HTTP request is recorded when it arrives at or leaves from the service.
21
+
-**HTTP request** logs provide tracing information for HTTP requests to the Azure Web PubSub service, like HTTP method or status code. Typically, an HTTP request is recorded when it arrives at or leaves from the service.
22
22
23
23
## Capture resource logs with the live trace tool
24
24
25
25
The Azure Web PubSub service live trace tool can collect resource logs in real time, which is helpful for troubleshooting problems in your development environment. The live trace tool can capture connectivity logs, messaging logs, and HTTP request logs.
26
26
27
27
> [!NOTE]
28
-
> You should consider the following when using the live trace tool:
28
+
> You should consider the following factors when using the live trace tool:
29
29
>
30
30
> - The real-time resource logs captured by the live trace tool are billed as messages (outbound traffic).
31
31
> - The Azure Web PubSub service Free tier instance has a daily limit of 20,000 messages (outbound traffic). You can unexpectedly reach the daily limit by using live trace.
32
-
> - The live trace tool does not currently support Microsoft Entra authorization. You must enable access keys to use live trace. Under **Settings**, select **Keys**, and then enable **Access Key**.
32
+
> - The live trace tool doesn't currently support Microsoft Entra authorization. You must enable access keys to use live trace. Under **Settings**, select **Keys**, and then enable **Access Key**.
33
33
34
34
## Launch the live trace tool
35
35
36
-
When you enable an access key, you'll use the access token to authenticate the live trace tool. Otherwise, you'll use Microsoft Entra ID to authenticate the live trace tool. You can find out if the access key is enabled by going to your Azure SignalR Service's Keys pane in the Azure portal.
36
+
When you enable an access key, you use the access token to authenticate the live trace tool. Otherwise, you use Microsoft Entra ID to authenticate the live trace tool. You can find out if the access key is enabled by going to your Azure SignalR Service's Keys pane in the Azure portal.
37
37
38
38
### Launch the live trace when the access key is enabled
39
39
40
40
1. Go to the Azure portal and your SignalR Service pane.
41
41
1. From the menu on the left, under **Monitoring**, select **Live trace settings**.
42
42
1. Select **Enable Live Trace**.
43
-
1. Select the **Save** button. It will take a moment for the changes to take effect.
43
+
1. Select the **Save** button. It takes a moment for the changes to take effect.
44
44
1. When updating is complete, select **Open Live Trace Tool**.
45
45
46
46
:::image type="content" source="./media/howto-troubleshoot-diagnostic-logs/diagnostic-logs-with-live-trace-tool.png" alt-text="Screenshot of launching the live trace tool.":::
@@ -61,7 +61,7 @@ When you enable an access key, you'll use the access token to authenticate the l
61
61
1. Go to the Azure portal and your SignalR Service pane.
62
62
1. From the menu on the left, under **Monitoring**, select **Live trace settings**.
63
63
1. Select **Enable Live Trace**.
64
-
1. Select the **Save** button. It will take a moment for the changes to take effect.
64
+
1. Select the **Save** button. It takes a moment for the changes to take effect.
65
65
1. When updating is complete, select **Open Live Trace Tool**.
66
66
67
67
:::image type="content" source="./media/howto-troubleshoot-diagnostic-logs/diagnostic-logs-with-live-trace-tool.png" alt-text="Screenshot of launching the live trace tool.":::
@@ -75,10 +75,10 @@ When you enable an access key, you'll use the access token to authenticate the l
75
75
76
76
The live trace tool can help you capture the resource logs for troubleshooting.
77
77
78
-
-**Capture**: This begins to capture the real-time resource logs from Azure Web PubSub.
79
-
-**Clear**: This clears the captured real-time resource logs.
80
-
-**Log filter**: This filters the captured real-time resource logs with one specific keyword. The common separators like space, comma, and semicolon are treated as part of the keyword.
81
-
-**Status**: The status shows whether the live trace tool is connected or disconnected with the specific instance.
78
+
-**Capture** begins to capture the real-time resource logs from Azure Web PubSub.
79
+
-**Clear** clears the captured real-time resource logs.
80
+
-**Log filter** filters the captured real-time resource logs with one specific keyword. The common separators like space, comma, and semicolon are treated as part of the keyword.
81
+
-**Status** shows whether the live trace tool is connected or disconnected with the specific instance.
82
82
83
83
:::image type="content" source="./media/howto-troubleshoot-diagnostic-logs/live-trace-tool-capture.png" alt-text="Screenshot of capturing resource logs with the live trace tool.":::
84
84
@@ -87,7 +87,7 @@ The real-time resource logs captured by the live trace tool contain detailed inf
| Log Level | Log event level, can be [Trace \| Debug \| Informational \| Warning \| Error]|
90
+
| Log Level | Log event level can be [Trace \| Debug \| Informational \| Warning \| Error]|
91
91
| Event Name | Operation name of the event |
92
92
| Message | Detailed message for the event |
93
93
| Exception | The run-time exception of Azure Web PubSub service |
@@ -198,7 +198,7 @@ To view the resource logs, follow these steps:
198
198
199
199
:::image type="content" alt-text="Query log in Log Analytics" source="./media/howto-troubleshoot-diagnostic-logs/query-log-in-log-analytics.png" lightbox="./media/howto-troubleshoot-diagnostic-logs/query-log-in-log-analytics.png":::
200
200
201
-
To use a sample query for SignalR service, follow the steps below.
201
+
To use a sample query for SignalR service, follow these steps:
202
202
203
203
1. Select `Logs` in your target Log Analytics.
204
204
1. Select `Queries` to open query explorer.
@@ -230,7 +230,7 @@ If you find unexpected increases or decreases in the number of connections, you
230
230
231
231
#### Unexpected disconnection events
232
232
233
-
If a connection disconnects, the resource logs will record the disconnection event with `ConnectionAborted` or `ConnectionEnded` in `operationName`.
233
+
If a connection disconnects, the resource logs record the disconnection event with `ConnectionAborted` or `ConnectionEnded` in `operationName`.
234
234
235
235
The difference between `ConnectionAborted` and `ConnectionEnded` is that `ConnectionEnded` is an expected disconnection that is triggered by the client or server side. By contrast, `ConnectionAborted` usually refers to an event in which a connection unexpectedly drops, and the reason for disconnection is provided in `message`.
0 commit comments