app service linux apache access logs

Ed Greenberg 1 Reputation point
2021-12-06T17:15:35.647+00:00

I have app services running linux. Not my own docker container, but a standard LAMP app service (PHP|7.4) which runs Apache 2.4.

If I run a log stream, I can usually get errors, but is there any way to get the actual access_log?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,908 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 22,416 Reputation points Microsoft Employee
    2021-12-08T20:10:28.637+00:00

    EdGreenberg-7874, Firstly, apologies for the delay in responding here.

    What specific App Service blessed image are you leveraging? What access logs are you looking for?

    Kindly find the App service quick Start images config/logs.

    You could use SSH and navigate through /home/LogFiles. (If the container is up and running, SSH option will be available for blessed images).
    log files from \home\Logfiles - access_.log and \error_.log

    Just to highlight, you could access and download the available logs via kudu console on App Service.

    You can access Kudu site to browse to the logs via:
    https://<yourapp-name>.scm.azurewebsites.net/api/logs/docker.

    Additionally, for more info:
    Access log files

    You may also leverage App Service diagnostics from Azure Portal for pointers. To access App Service diagnostics, navigate to your App Service app in the Azure portal.
    In the left navigation, click on Diagnose and solve problems – Checkout the tile for “Diagnostic Tools” and “Availability and Performance” > "Application Logs" title.