Azure Function losing logs

Prerna Bhand 20 Reputation points
2024-01-22T09:46:47.5433333+00:00

Hi,

I have a service bus - topic triggered Azure Function running in EP1 mode with an tested scale out setting of 25 instances. It is unfortunately on 3.x version at the moment, because we have some backward compatibility issues with MS Dataverse. A couple of problems I am facing with bulk migration (around 5-6 million records)

  • Every incoming message with its whole body is logged by the function at Information level. I pick it up from Application Insights to just check how many messages were processed by the function. So far it worked, but recently it appears as if the function loses some of the logging and these logs simply do not appear when I query in Application Insights. When I see the function execution count, that appears correct with the number of messages received in the queue. Why is the function losing logs? Here is the default host.json configuration... { "version": "2.0", "logging": { "applicationInsights": { "samplingSettings": { "isEnabled": true, "excludedTypes": "Request" } } }}
  • For production level setting, I just want to see errors and exceptions using the log level - Error. Is it going to affect the other function monitoring related features? I rely heavily on the function monitoring (Because the logs are not complete) to check the execution count, success count etc . Unfortunately the documentation is too confusing here.
  • Could the 3.x function version be a problem here? I cannot upgrade it to 4.x without proper testing and this can only be done in a month's time. But if its a road blocker, I would need to address it immediately.

Many thanks in advance for any inputs..

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,594 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,163 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.