skip to Main Content

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


  1. Chosen as BEST ANSWER

    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.


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

    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:

    traces 
    | where operation_Name contains "rithfunc1"
    

    enter image description here

    To check another function you can check like below:

    traces 
    | where operation_Name contains "funcrith2"
    

    enter image description here

    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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search