You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using the App Insights Java agent on App Service and have IP masking turned off. The expected behavior is that "request" logs should include the correct client IP in the field client_IP.
Actual behavior
The field client_IP is filled with one of the outbound IP addresses of the app service.
To Reproduce
Steps to reproduce the behavior:
Deploy an App Service with Java 11 on Linux and App Inisights enabled
It seems that the problem is with the "X-Forwarded-For" header. Azure App Service send the port and the IP address in this header - other load balancers and proxies only the IP address.
Expected behavior
We are using the App Insights Java agent on App Service and have IP masking turned off. The expected behavior is that "request" logs should include the correct client IP in the field
client_IP
.Actual behavior
The field
client_IP
is filled with one of the outbound IP addresses of the app service.To Reproduce
Steps to reproduce the behavior:
client_IP
in the App Insights log type "request"Sample Application
https://github.com/derkoe/snoop
System information
Please provide the following information:
Logs
applicationinsights.log
applicationinsights-extension.log
Screenshots
Additional Info
We are also running apps on Kubernetes with nginx-ingress where we get the correct address in
client_IP
The text was updated successfully, but these errors were encountered: