Function App not logging to Log Analytics workspace defined in Diagnostic Settings

Steven Stermer 0 Reputation points
2024-03-22T02:27:43.09+00:00

I've got 3 Function Apps representing 3 different environments. These functions apps are all set, via the diagnostic settings, to log to a Log Analytics workspace (the same workspace for all apps). 2 of the 3 environments successfully do this. The 3rd did this until around 2 days ago when the logs show a "Job Host Stopped" call as the last entry. At current, the function apps are all running the exact same code, with the same setup of environment variables (although different values).

Watching the log stream of the problem Function App shows the logs, they just never make it to the Log Analytics workspace. As a test, I also added a storage account to the Diagnostics Settings (under the same setting that is set to go to the workspace) and nothing appears in it's container either.

Not really sure what to investigate from here, most Stack Overflow issues point to a code-level configuration issue, but that can't be the case since it successfully works with the other environments.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

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.