Share via

Missing app service logs

Pavel Orlov 0 Reputation points
2025-02-11T22:03:16.1033333+00:00

Hello, App service is connected to AppInsights, Logs workspace shows logs being collected but when trying to query and retrieve the logs for App service/insights there's no data available for any query types or directly in App insights.

Thanks

Pavel

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


2 answers

Sort by: Most helpful
  1. Pavel Orlov 0 Reputation points
    2025-02-12T07:44:43.43+00:00

    Thanks for all the suggestions. But it's all been tried and there is simply no data returned when querying the logs or checking appinsights. The logging is on, logs workspace show graphs with data being ingested, appinsights connected etc. I'll do all the screenshots shortly so you can see.

    I'm thinking if ASE v2 moving to v3 has anything to do with it though. The app service is in ASE behind app gateway.

    Was this answer helpful?


  2. Bhargavi Naragani 7,940 Reputation points Moderator
    2025-02-12T05:34:07.77+00:00

    Hi @Pavel Orlov,
    Thanks for the question and using MS Q&A platform.
    If your App Service is hooked up to Application Insights and you see logs in the Log workspace, but nothing shows up when you query,

    Make sure the time range for your queries is correct. Logs might not show up if the selected time range doesn't cover the log generation time.

    Ensure the connection strings in your Application Insights configuration match those in the Azure portal. Mismatched strings can block log visibility. Run your app in debug mode in Visual Studio to generate telemetry.

    Check the Visual Studio output window for logged events. Data might take a bit to appear. Refresh the Application Insights portal to see if logs show up after a short delay. In the Azure portal, check Service Health for any alerts that might be affecting log availability.

    Reference:

    https://learn.microsoft.com/en-us/answers/questions/1348145/azure-application-insights-not-showing-logs

    Troubleshoot no data: Application Insights for .NET and .NET Core

    Monitor Azure App Service

    If you have any further assistance let me know.

    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.

    Was this answer helpful?


Your answer

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