Home About Blog

Why does the remote_addr field in HTTP logs show 0 for the last value of the IP address

A customer asks the following:

When I look at the remote_addr field in HTTP logs, why do all the IP addresses end in 0? This can’t be correct?

This is an intentional behaviour introduced so customer IP addresses are no longer stored in their full form in section.io logging platform in accordance to GDPR regulations.

Section.io still sends the full IP address upstream using True-Client-IP HTTP request header. So if you require the full IP address, it is still available to you in any proxy, e.g. Varnish, and at the origin. See:
https://www.section.io/docs/reference/edge-proxy/#client-ip-detection