Log queries not returning values

Namboothiry, Sabarish 11 Reputation points
2022-08-30T11:51:24.84+00:00

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

AppServiceAppLogs
| 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,783 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 17,321 Reputation points
    2022-08-30T12:35:40.52+00:00

    @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.

    236122-image.png

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

    0 comments No comments