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
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@ This how-to guide provides an overview of Azure Web PubSub resource logs and som
14
14
15
15
## <aid="whats-are-resource-logs">What are resource logs?</a>
16
16
17
-
There are three types of resource logs: Connectivity, Messaging, and HTTP requests.
18
-
-**Connectivity** logs provide detailed information for Azure Web PubSub hub connections. For example, basic information (user ID, connection ID, and so on) and event information (connect, disconnect, and abort event, and so on).
17
+
There are three types of resource logs: *Connectivity*, *Messaging*, and *HTTP requests*.
18
+
-**Connectivity** logs provide detailed information for Azure Web PubSub hub connections. For example, basic information (user ID, connection ID, and so on) and event information (connect, disconnect, and so on).
19
19
-**Messaging** logs provide tracing information for the Azure Web PubSub hub messages received and sent via Azure Web PubSub service. For example, tracing ID and message type of the message.
20
20
-**HTTP requests** logs provide tracing information for HTTP requests to the Azure Web PubSub service. For example, HTTP method and status code. Typically the HTTP request is recorded when it arrives at or leave from service.
21
21
@@ -90,7 +90,7 @@ Currently Azure Web PubSub supports integration with [Azure Storage](../azure-mo
90
90
> [!NOTE]
91
91
> The storage account should be in the same region as Azure Web PubSub service.
92
92
93
-
### Archive to Azure Storage Account
93
+
### Archive to an Azure Storage Account
94
94
95
95
Logs are stored in the storage account that's configured in the **Diagnostics setting** pane. A container named `insights-logs-<CATEGORY_NAME>` is created automatically to store resource logs. Inside the container, logs are stored in the file `resourceId=/SUBSCRIPTIONS/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/RESOURCEGROUPS/XXXX/PROVIDERS/MICROSOFT.SIGNALRSERVICE/SIGNALR/XXX/y=YYYY/m=MM/d=DD/h=HH/m=00/PT1H.json`. The path is combined by `resource ID` and `Date Time`. The log files are split by `hour`. The minute value is always `m=00`.
96
96
@@ -150,25 +150,31 @@ The following code is an example of an archive log JSON string:
150
150
151
151
### Archive to Azure Log Analytics
152
152
153
-
Once you check `Send to Log Analytics`, and select target Azure Log Analytics, the logs will be stored in the target. To view the resource logs, follow these steps:
153
+
To send logs to a Log Analytics workspace:
154
+
1. On the **Diagnostic setting** page, under **Destination details**, select **Send to Log Analytics workspace.
155
+
1. Select the **Subscription** you want to use.
156
+
1. Select the **Log Analytics workspace** to use as the destination for the logs.
157
+
158
+
To view the resource logs, follow these steps:
154
159
155
160
1. Select `Logs` in your target Log Analytics.
156
161
157
162
:::image type="content" alt-text="Log Analytics menu item" source="./media/howto-troubleshoot-diagnostic-logs/log-analytics-menu-item.png" lightbox="./media/howto-troubleshoot-diagnostic-logs/log-analytics-menu-item.png":::
158
163
159
-
2. Enter `WebPubSubConnectivity`, `WebPubSubMessaging` or `WebPubSubHttpRequest` and select time range to query connectivity log, messaging log, or http request logs, correspondingly. For advanced queries, see [Get started with Log Analytics in Azure Monitor](../azure-monitor/logs/log-analytics-tutorial.md).
164
+
1. Enter `WebPubSubConnectivity`, `WebPubSubMessaging` or `WebPubSubHttpRequest`, and then select the time range to query the log. For advanced queries, see [Get started with Log Analytics in Azure Monitor](../azure-monitor/logs/log-analytics-tutorial.md).
160
165
161
166
:::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":::
162
167
168
+
163
169
To use a sample query for SignalR service, follow the steps below.
164
170
1. Select `Logs` in your target Log Analytics.
165
-
2. Select `Queries` to open query explorer.
166
-
3. Select `Resource type` to group sample queries in resource type.
167
-
4. Select `Run` to run the script.
171
+
1. Select `Queries` to open query explorer.
172
+
1. Select `Resource type` to group sample queries in resource type.
173
+
1. Select `Run` to run the script.
168
174
:::image type="content" alt-text="Sample query in Log Analytics" source="./media/howto-troubleshoot-diagnostic-logs/log-analytics-sample-query.png" lightbox="./media/howto-troubleshoot-diagnostic-logs/log-analytics-sample-query.png":::
169
175
170
176
171
-
Archive log columns include elements listed in the following table:
177
+
Archive log columns include elements listed in the following table.
0 commit comments