1

On a Weblogic app server I'm analysing the access logs to count how many distinct clients have accessed the app. I am not sure about the difference between these two columns found in these logs: c-ip and x-ClientIP

Could somebody please explain and point to the reference docs? I am only finding usages of "c-ip" as a format string for logs... Or are these column names specific to my app?

gabi.m
  • 51
  • 2

1 Answers1

1

Both display the ip address of the client. x-ClientIP is probably the same as the clientip but its configured on your device (Load Balancer or some other cloud device say WAF or CDN)

"c-ip" displays the ip address of the client. This is straight foward.
If you access weblogic server directly, it will display your PC's ip address in the log files.
However, if you access weblogic from say a load balancer, the ip address of the load balancer will get displayed in the log files. How then do you display the ip address of the client ?
Enter x-forwarded-for or x-clientIP header. This requires special configuration on the load balancer/network device. Once configured, you can display the ip address of the client using say x-clientIP even if you are accessing it using a load balancer/network device.

souser
  • 5,868
  • 5
  • 35
  • 50