Logging Cloudflare Country Code in Apache Backend
1...
2...
3LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %{cf-ipcountry}i" cloudflare_custom
4CustomLog /var/log/httpd/site.example.com-cloudflare_custom.log cloudflare_custom
5...
6...
See details in https://support.cloudflare.com/hc/en-us/articles/200168236-What-does-Cloudflare-IP-Geolocation-do-