Monitoring and Debugging in Static Web Apps #851
Replies: 4 comments
-
at a mininum, i would just want a way to get a page hit log (timestamp, url, and user id) so we can monitor usage. |
Beta Was this translation helpful? Give feedback.
-
The key is AppInsights. If we are building a SaaS application using Static Web App then it should definitely log the user & session data in the AppInsights (which as per my research currently doesn't do that). So requesting you to please log more in the AppInsights that is connected to the SWA. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hello @Reshmi-Sriram, Thanks |
Beta Was this translation helpful? Give feedback.
-
The documentation is lacking when it comes to diagnostic logs and SWA. Compared to Recovery Services Vault: It does not say what Log Analytics table(s) are supported, and there are noe example queries. I've tried to enable {
"EventHubAuthorizationRuleId": null,
"EventHubName": null,
"Id": "/subscriptions/<redacted>/resourcegroups/<redacted>/providers/microsoft.web/staticsites/<redacted>/providers/microsoft.insights/diagnosticSettings/<redacted>",
"Log": [
{
"Category": "StaticSiteDiagnosticLogs",
"CategoryGroup": null,
"Enabled": true,
"RetentionPolicyDay": 0,
"RetentionPolicyEnabled": false
},
{
"Category": "StaticSiteHttpLogs",
"CategoryGroup": null,
"Enabled": true,
"RetentionPolicyDay": 0,
"RetentionPolicyEnabled": false
}
],
"LogAnalyticsDestinationType": null,
"MarketplacePartnerId": null,
"Metric": [
{
"Category": "AllMetrics",
"Enabled": false,
"RetentionPolicyDay": 0,
"RetentionPolicyEnabled": false,
"TimeGrain": null
}
],
"Name": "<redacted>",
"ServiceBusRuleId": null,
"StorageAccountId": null,
"SystemDataCreatedAt": null,
"SystemDataCreatedBy": null,
"SystemDataCreatedByType": null,
"SystemDataLastModifiedAt": null,
"SystemDataLastModifiedBy": null,
"SystemDataLastModifiedByType": null,
"Type": "Microsoft.Insights/diagnosticSettings",
"WorkspaceId": "/subscriptions/<redacted>/resourceGroups/<redacted>/providers/Microsoft.OperationalInsights/workspaces/<redacted>"
} But I can't find any logs yet. This was hours ago. Do we have to use dedicated table? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hey folks!
We are working on improving the monitoring and debugging aspects of Static Web Apps. We'd love to hear from you on:
Below is the proposed schema for monitoring, namely
StaticSiteHTTPLogs
andStaticSiteDiagnosticLogs
.Let us know if the below schema solves your common asks!
StaticSiteHTTPLogs: Schema
StaticSiteDiagnosticLogs: Schema
Beta Was this translation helpful? Give feedback.
All reactions