Why is Application Insights library not collecting all logs on my java spring boot application?

Helms, Benjamin 41 Reputation points
2022-08-10T21:22:35.36+00:00

I am running a spring boot application with Java 8 and log4j.

I setup application insights v3 (https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-spring-boot#programmatic-configuration). I have followed all of the steps in this doc and I am getting some logs and some telemetry data sent to my Insights instance. However, the most critical logs of my application are not being captured. I have ensured that the log4j log level is set to INFO and I have set the env varable APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL=INFO as called out here: https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config#auto-collected-logging

Yet, my critical logs are not captured. I am seeing some of the logs, but not the ones I need most.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,825 questions
{count} votes