I am trying to view app insight logs for my Azure Function using the Log Stream but it’s showing logs from all apps/functions. My App Insights account has multiple resources pointing to it but should the Log Stream be showing logs only from the current Function
2
Answers
I figured it out, clicked on "Open in Live Metrics" and then on the Live Metrics blade filtered by the role which is my function resource name. Closed the blade and now the log stream only shows verbose log output from my function only.
Yes, Log Stream show all the logs of all resources which are linked to it.
To check a particular logs of a particular function, you can check in Monitoring Section and then click on logs.
To check the logs of a function named
rithfunc1
, use below KQL query:To check another function you can check like below:
As application insights collects all the logs of all apps/functions and then stores, so if you want logs of a particular function follow the KQL query and also refer SO-Thread