Forum Discussion
IBM HTTP Server access logs not capturing Client IP information
Hi,
We are not able to record Client IP in HTTP Server logs , X forward settings are done at F5 level, we have the following settings in httpd.conf file : LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" ClientIP=%{X-Forwarded-For}i " combined
LogFormat "%h %l %u %t \"%r\" %>s %b ClientIP=%{X-Forwarded-For}i " common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
We are still getting the Load balancer IP in the IHS access logs.
Please help me to get the Client IP recorded in IHS access logs.
Earlier we were using CISCO load balancer and as we moved to F5 , we are facing this issue.
- Lee_Sutcliffe
Nacreous
Hello, I cannot comment on the correct format for your httpd.conf file. As this is an F5 site, you're more likely to get help with the F5 side of things.
That said, assuming your config on the web servers is correct, please could you share your F5 configuration. Have you verified the X-Forwarded-For header is inserted when the request arrives at the web server?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com