Hi Sam Sadeghian
Hi ,Welcome to the Microsoft Q&A Platform!
If your Azure App Service logs are not visible under the "Monitor" section, you can enable diagnostics and access logs for Node.js errors.
- Navigate to Azure portal> App Service > Diagnostics Settings.
- Turn on Application Logging it should stored logs temporarily (12 hours).
- Application Logging (Blob) will Retained in a configured storage account.
- Use
Error
orVerbose
for detailed logs.
Use Azure CLI for logs to access.
az webapp log download --name <AppServiceName> --resource-group <ResourceGroupName>
- Visit:
https://<your-app-name>.scm.azurewebsites.net
. - Go to Debug Console > LogFiles > Application >
nodejs
folder. - App Service > Log Stream under the Monitoring section.
- Application Logging (Filesystem) must be enabled.
- Ensure your app outputs logs via
stdout
orstderr
. - Link Application Insights to your App Service for detailed telemetry.
- Enable Live Metrics for real-time logs and performance monitoring.
- Ensure Node.js outputs errors via
console.error
. - Add
DEBUG
orNODE_ENV=development
in the App Service configuration. - Azure Monitor > Logs.
If this answers your query, do clickAppRequests | where Resource == "<YourAppServiceName>" | project Timestamp, StatusCode, Message
Accept Answer
andYes
for was this answer helpful.