Can't check the logs for laravel application on Azure App Service

Navneet Singh Chouhan‎ 0 Reputation points
2025-03-02T05:21:31.48+00:00

Hello, I am running my Laravel application on an app service. Unfortunately, I am unable to access the Laravel logs, which are located at <app root>/storage/logs/Laravel.log. This log file contains all the error information, but I cannot find these logs in the log stream.

Please let me know how I can access them.

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

1 answer

Sort by: Most helpful
  1. Alekhya Vaddepally 5 Reputation points Microsoft External Staff
    2025-03-03T12:49:12.4366667+00:00

    Hi @Navneet Singh Chouhan‎,

    It seems like you are facing an issue with accessing the Laravel logs for your application running on Azure App Service

    to access the logs these steps will be useful to you and can follow below steps.

    Go to Azure portal and go to your App service.

    In left menu >Monitoring and select App service logs in that,

    If "Application Logging (File System)"is turned off. ensure that it is turned on the option and set the log level (e.g., Error, Warning, Information, etc.), and then save the settings.

    Also check the Laravel logs is correctly configured to log Errors, logging is configured by log channel e.g.(storage/logs/laravel.log)

    To check logs or view logs after configuration we can also follow these steps

    Once Application logging is enabled, you can also access the logs using advanced tools(kudu), which is a set of tools that can be used to manage and debug Azure App Service

    To access this (Kudu) you can go to your App Service in the Azure portal > Development Tools> Advanced Tools(kudu).

    Once inside Kudu navigate to Debug console > CMD, after that Go to the path where your Laravel logs are stored, typically /storage/logs/. and you can view your Laravel logs (eg:laravel.logs)

    https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs

    https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview

    If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.

    Let me know if you have any further Queries.

    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.