What is wrong with Azure WebApp LogStream. It is not working for days now.

Hessel Wellema 256 Reputation points
2025-05-22T11:03:33.4933333+00:00

I use Logstream to debug code on azure before it goes into production

The last weeks (or is it months) it is taking a long time to connect.

The last days it stopped working for all webapps that I checked. I did no make any changes in app setting or whatsoever.

It is showing connecting all the time or
It shows "this feature requires write permission to your app""
After a refresh, it just shows connecting .. all the time again.

In the good days it showed connecting and after a couple of seconds : connected!

  • I am Global Admin in Azure
  • Application logging (Filesystem) is set to On
  • The APPLICATIONINSIGHTS_CONNECTION_STRING has a value

Any guidance is much appreciated.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shree Hima Bindu Maganti 4,775 Reputation points Microsoft External Staff Moderator
    2025-05-22T14:26:52.8433333+00:00

    Hi @Hessel Wellema
    If Azure Web App Log Stream is stuck on Connecting or shows This feature requires write permission to your appEnable Application Logging (Filesystem) This setting is required for logs to be streamed and turns off automatically after 12 hours.
    Enable logging docs

    Check Your Permissions Even Global Admins need a role that includes the Microsoft.Web/sites/publish/Action permission. Use Contributor or Website Contributor roles.

    Check WEBSITE_LOCAL_CACHE_OPTION If this is set to Always, log streaming might not work. Set it to Off if needed.

    Use Azure CLI as a Backup Run this command to stream logs from the command line.

     az webapp log tail --name <app-name> --resource-group <resource-group-name>
    
    

    CLI log stream

    Visit and check /LogFiles for real-time logs.
    https://techcommunity.microsoft.com/blog/appsonazureblog/troubleshooting-log-stream-data-not-loadingpopulating-in-app-services/3944370
    Let me know if you have any further assistances needed.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.