Overriding logstash access "remote_host" with client IP - Spring Boot

Good day,
Does anyone know how to override "remote_host" field within logstash access. Currently we are logging the load balancer's IP. I would like to use the "X-Forwarded-For" header.
Thank you.