-
Notifications
You must be signed in to change notification settings - Fork 199
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
Supporting request payload for put and post methods through ApplicationInsights.json config file for java based applications #2936
Comments
Thank @Trass3r , Could you provide some samples
|
my applicationinsights.json look like this which his working fine production{ |
Ah sorry, right, that setting is only for headers. |
I tried to achieve the same thing for requests but it doesn't seem to be possible with configuration only:
|
@Trass3r Thanks for reply , please provide some sample for headers { |
Is there a way to see the payload for a request in Application Insights? So far there is only the option of turning on http headers, but that is not sufficient. In some cases the request body (json) would be helpful for error analysis. |
You can set the self-diagnostics log to debug level, payload is logged in DEBUG level. You can search for |
@heyams thanks for the quick reply Can I only see the request body in the LOG file or directly in the Azure portal? Regulating this via the log level is still suboptimal because then I get much more than I need. Changing at runtime is also difficult with AKS because then the pod has to restart, etc. I also thought self diagnostic was for Application Insights itself and not for collecting your own metrics from the application. |
@MelleD I think I understand your ask better now. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
Hi Team,
One our java based application in running azure and we recently implemented Application insights.
1.Is there any way i can configure in applicationinsights.json for HTTP post and put method`s payload (to check request payload in logs) .
2. can we configure to collect only failure dependency logs not all dependency (since in my application request logs are 5 gb and dependency logs or 20 gb.
Thanks
The text was updated successfully, but these errors were encountered: