# Overriding logstash access "remote\_host" with client IP - Spring Boot

**URL:** <https://discuss.elastic.co/t/overriding-logstash-access-remote-host-with-client-ip-spring-boot/309887>\
**Category:** Logstash\
**Created:** [July 18, 2022, 10:57am UTC](https://discuss.elastic.co/t/overriding-logstash-access-remote-host-with-client-ip-spring-boot/309887 "2022-07-18T10:57:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wes1](https://avatars.discourse-cdn.com/v4/letter/w/848f3c/32.png) [@Wes1](https://discuss.elastic.co/u/Wes1)\
**Post date:** [July 18, 2022, 10:57am UTC](https://discuss.elastic.co/t/overriding-logstash-access-remote-host-with-client-ip-spring-boot/309887/1 "2022-07-18T10:57:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 15, 2022, 10:58am UTC](https://discuss.elastic.co/t/overriding-logstash-access-remote-host-with-client-ip-spring-boot/309887/2 "2022-08-15T10:58:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
