Node.js App Service application / console logs are not being streamed to event hub, but HTTP logs are

Scott 0 Reputation points
2025-02-27T13:22:54.88+00:00

Hi,

I have a Node.js web app running in App Services. The code contains console.log() statements.

If I click on "Log Stream" in the Azure console, I can see the outputs of those log statements. I have also configured logging to the file system under "App Service logs". Using kudu, I can see those logs files being created under "C:\home\LogFiles\Application".

I have also configured a "Diagnostic Setting" to stream the logs to an event hub. This is where I am having an issue. Even though I have selected every category of log in that setting, including "App Service Console Logs" and "App Service Application Logs", the only logs I see being streamed to the event hub are the "HTTP logs". I am observing this using the hub's Data Explorer. The event hub is deployed to the same region as my web app.

What am I missing? Why are these log types not being streamed to the event hub?

Thanks,

Scott

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,451 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.