Logs on AppService

sergio 116 Reputation points

I have trouble storing logs to a Storage Account.
Specifically I have an AppService (dotNet ASP api application) that internally write logs, now I want to save these logs in a permanent storage.
I've configured the "App Service Logs" to have the application logs stored in Azure Storage Container, but still I don't see any log in the storaga container. Is the AppServiceLogs configuration enough or I need to modify the application code too (like log4Net to write on the StorageContainer)?


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

Accepted answer
  1. sergio 116 Reputation points

    but besides append to a Blob Storage,
    what if I want to write from log4Net application log to LogAnalytics Workspace?
    What is the correct way to see my application log onto LogAnalytics?


    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. brtrach-MSFT 15,791 Reputation points Microsoft Employee

    What logs are you hoping to have access to? The below logs are able to be configured to be captured with no additional coding required (if selected during the configuration step).

    • AppServiceAntivirusScanAuditLogs
    • AppServiceHTTPLogs
    • AppServiceConsoleLogs
    • AppServiceAppLogs
    • AppServiceFileAuditLogs
    • AppServiceAuditLogs
    • AppServiceIPSecAuditLogs
    • AppServicePlatformLogs
    • AllMetrics

    Where are you checking for your logs? I can see my httplogs in the Azure portal if I go to my storage account> containers blade> insights-logs-appservicehttplogs and then start drilling down.

    Lastly, it sometimes can take 15-20 minutes for the logs to start propagating to the external storage. Please let us know the outcome. We look forward to your reply.