Function has no invocation records or 'live' logs

ZZ 80 Reputation points
2025-01-27T15:58:57.8566667+00:00

My function app is configured as such but I don't get invocation records, or logs in the live streaming window. Logs can be found in application insights through 'table > traces'. What is wrong with my function or configuration?

When I click to see invocations, I see an empty list after 10:19 today, but that is wrong because I made lots of calls later, you can see this in the applications insights.

Screenshot from 2025-01-27 15-50-51

When I choose the Logs window like below, and then make a call to the function, I also do not get anything appearing in the window.

Screenshot from 2025-01-27 15-52-06

But as you can see, application insights can show all the logs if I click 'Table > Traces'

Screenshot from 2025-01-27 15-51-37

Function app json:

{
  "version": "2.0",
  "functionTimeout": "00:10:00",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": ""
      }
    },
    "logLevel": {
      "default": "Warning",
      "Function": "Information",
      "Host.Aggregator": "Trace",
      "Host.Results": "Error"
    },
    "extensions": {
      "queues": {
        "maxDequeueCount": 1
      }
    }
  },
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[4.*, 5.0.0)"
  }
}
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,473 questions
{count} votes

Accepted answer
  1. Ryan Hill 29,681 Reputation points Microsoft Employee
    2025-02-28T02:12:38.2366667+00:00

    Hi @ZZ

    Thanks for working offline with me investigating this issue. To benefit the broader community, your missing invocation log entries came down to the logging configuration in your host.json. The Invocation tab pulls records that are saved to the requests table from Host.Results; as documented on https://learn.microsoft.com/en-us/azure/azure-functions/configure-monitoring?tabs=v2#configure-categories. By default, only Warnings are logged for this for Hosts.Results, meaning anything that fails within the host operation, e.g. an unhandled exception or anything that's logged as a warning message.

    In order to see everything, you just have to change the logLevel to a lower level, i.e. Information.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.