Log queries not returning values

Namboothiry, Sabarish 11 Reputation points

So I have created an Azure App service with some Java code. When I go to the log stream I can see list of logs getting streamed properly.

But when I try to run a log query like below I am unable to see any values retrieved

| where Message has "Message posted"

Can you suggest if I am looking under the correct logs

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,477 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 14,571 Reputation points

    @Namboothiry, Sabarish Welcome to Microsoft Q & A Community Forum. To view the logs within Log Analytic workspace , you need to enable diagnostic settings of the resource.

    In the Azure portal, navigate to your App Service. Under Monitoring, select Diagnostic settings > Add diagnostic setting.


    For more information on app service logs, refer this document.

    0 comments No comments