I have an environment running Sitecore 9.2 on Azure PAAS. It's an upgraded codebase (from 9.0.2) but on a clean setup.
I had an issue with logging. Application Insights is working fine - I can see my logs there. But I also liked to use the log stream in the Azure portal when I had to debug something. On our 9.0.2 environment this was working, but on the 9.2 it was not.
I noticed there are some changes in the Application Insights setup on 9.2, but I can't seem to find good documentation on how to configure this (and I am no Azure expert). I got some ideas on Slack:
- set
ApplicationInsights.DeveloperMode
to true - disable Application Insights
I tried the DeveloperMode but that didn't help.
In the app settings on 9.2 there is also a key useApplicationInsights:define
. When I turn this to false, the log stream starts working. But this disables AI.
What is this useApplicationInsights:define
key? How does it work and how should I configure this on Sitecore 9.2 to get AI and the log stream working?
role:define
forContentManagment
orContentDelivery
, orsearch:define
forAzure
orSolr
). I would suggest searching the configs foruseApplicationInsights:require
to see what turns up...