-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No INFO level logs are appearing in AppInsight #2821
Comments
hi @abhikt48! check out https://learn.microsoft.com/en-us/troubleshoot/azure/azure-monitor/app-insights/java-standalone-troubleshoot#some-logging-is-not-auto-collected if those tips don't help, can you post a small repro that exhibits the same issue that we can use to troubleshoot? thx! |
Hi @trask , Thank you so much for the quick feedback. I found one root cause of this issue and the root cause is Context - We are using Mule 3 logger component for logging which internally uses I created a sample application to replicate this issue. Please refer Readme.MD to replicate the issue - https://github.com/abhikt48/test-applicationinsights-agent/blob/main/README.md You should find the issue while running Could you please suggest any opinion to publish logs to App Insight with NOTE - At this moment, We are using Please feel free to let me know for any query. |
HI @trask or Team, Can anyone please take a look on this issue? Regards, |
Hi @trask & Team, We did further testing and found that old jar Please find below the test result with a different combinations, |
Hi Team, Could you please take a look at this issue? Regards, |
@abhikt48 thanks for the repro! i'm able to reproduce and looking into it... |
this should be fixed upstream by open-telemetry/opentelemetry-java-instrumentation#7656 my guess is that this fix should make it into the next upstream release (approx Feb 15), and into the next Application Insights Java release (approx Feb 22) |
@trask - I did testing with 3.4.10 and I can see logs are appearing in App Insight. I hope you have applied fixes in the latest 3.4.10 jar, if yes then please feel free to close this issue. |
great, yes, the fix was included in 3.4.10, thx for confirming! |
We started using
applicationinsights-agent:3.4.1
in the existing application. We can see REQUEST entry logs in App Insight but there are no application level INFO logs.Looks like, we are missing some configuration and we haven't found any sample Log4j2.xml configuration example for codeless agent.
Could you please suggest solution to fix issue or provide sample configuration with Log4j2.xml ?
Note - we don't have any AI /agent dependency in log4j2.xml, no AI-agent.xml file in resources folder. Only we are passing command line argument -
-javaagent:applicationinsights-agent-3.4.1.jar
Please find below sample Log4j2.xml
Sample Agent Configuration
The text was updated successfully, but these errors were encountered: