Skip to content

Commit 019295a

Browse files
committed
A few more changes...
1 parent 19d7bb2 commit 019295a

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

articles/azure-web-pubsub/howto-troubleshoot-resource-logs.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ This how-to guide provides an overview of Azure Web PubSub resource logs and som
1414

1515
## <a id="whats-are-resource-logs">What are resource logs?</a>
1616

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).
1919
- **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.
2020
- **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.
2121

@@ -90,7 +90,7 @@ Currently Azure Web PubSub supports integration with [Azure Storage](../azure-mo
9090
> [!NOTE]
9191
> The storage account should be in the same region as Azure Web PubSub service.
9292
93-
### Archive to Azure Storage Account
93+
### Archive to an Azure Storage Account
9494

9595
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`.
9696

@@ -150,25 +150,31 @@ The following code is an example of an archive log JSON string:
150150

151151
### Archive to Azure Log Analytics
152152

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:
154159

155160
1. Select `Logs` in your target Log Analytics.
156161

157162
:::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":::
158163

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).
160165

161166
:::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":::
162167

168+
163169
To use a sample query for SignalR service, follow the steps below.
164170
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.
168174
:::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":::
169175

170176

171-
Archive log columns include elements listed in the following table:
177+
Archive log columns include elements listed in the following table.
172178

173179
Name | Description
174180
------- | -------

0 commit comments

Comments
 (0)