I am using Apache behind HAProxy. The sample log file is as follows
22.214.171.124, 10.80.4.30 - - [13/Dec/2017:15:08:12 +0530] "GET /Portal/themes/js/language/showjs.js HTTP/1.1" 200 7106 "https://myserver.com/search/?searchElement=soccer&language=en" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0"
The first IP is Client IP and second IP is HAproxy IP. I have noticed that because of presence of comma charater after ClientIP,
the error _geoip_lookup_failure is appearing. The X-Forwarded-For option in HAProxy provides comma separated IP addresses to Apache Log file. I want to filter this (,) character before index creation.
How can I filter this Comma charter so that geoip can get value after index creation?