I tried to install Application Insights on Sitecore 10.1 project in Azure PaaS. After installing the AI SDK and configuring the instrumentation key the app insights started to pick up Sitecore logs e.g. coming from Sitecore Kernel, but not our custom logs which we would like to log as well. We have not changed any logging configuration so we are using the default Sitecore Diagnostics Log.Error methods for that. The errors are being logged correctly on lower environments however in Azure this does not work at all. I checked the daily cup and we did not exceed it yet so it should be working.
Could you please advise what to check or if there is any additional configuration required to make it work in AI?
traces | summarize count() by cloud_RoleInstance
. You could also aggregate bycloud_RoleName
, but its value is not always populated for all app services.requests | summarize count() by cloud_RoleInstance
. Also do you see any instance in the "Application map" section?