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