Logs on AppService

sergio 116 Reputation points
2021-02-25T15:17:40.483+00:00

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)?

thanks

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
    2021-03-22T12:03:00.593+00:00

    Thanks,
    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?

    \sergio

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. brtrach-MSFT 15,791 Reputation points Microsoft Employee
    2021-02-25T17:45:53.673+00:00

    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.