Azure / static-web-apps

Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
https://aka.ms/swa
MIT License
324 stars 56 forks source link

Diagnostic Settings unavailable for static web app #1295

Open vamshisiram opened 11 months ago

vamshisiram commented 11 months ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Make diagnostic settings available for static webapp resource.

Describe alternatives you've considered None available.

Additional context None.

thomasgauvin commented 11 months ago

Hi @vamshisiram, what do you mean by Diagnostic Settings? Are you referring to logging capabilities?

vamshisiram commented 11 months ago

Hi @thomasgauvin

Yes, logging capability. So, we can send azure activity logs to log analytics workspace. This is typically done by creating a diagnostic setting on the azure resource and linking to log analytics workspace.

vamshisiram commented 11 months ago

image this is an example from another resource where diagnostic settings are available.

thomasgauvin commented 11 months ago

Thanks for providing this context, at the moment, this is not something that Static Web Apps supports, though we are looking into improving our logging and monitoring aspect

bcldvd commented 8 months ago

Any way to simply see the logs of a Static Web App though ? :)

thomasgauvin commented 7 months ago

@bcldvd are you asking of the SWA static file requests or the managed Functions requests? Managed Functions requests should be possible via Application Insights but static file logs are not accessible

bcldvd commented 7 months ago

@thomasgauvin Moved the conversation to a discussion, as it might not be relevant to spam this specific issue: https://github.com/Azure/static-web-apps/discussions/1399 ;)