# Logstash to Logstash (Lumberjack) host details

**URL:** <https://discuss.elastic.co/t/logstash-to-logstash-lumberjack-host-details/253390>\
**Category:** Logstash\
**Created:** [October 27, 2020, 6:34am UTC](https://discuss.elastic.co/t/logstash-to-logstash-lumberjack-host-details/253390 "2020-10-27T06:34:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 27, 2020, 2:44pm UTC](https://discuss.elastic.co/t/logstash-to-logstash-lumberjack-host-details/253390/2 "2020-10-27T14:44:41Z")

</div>

> [@cliff.wakefield](#):
>
> the equivalent of an X-Forwarded-For header a HTTP proxy server adds

X-Forwarded-For? The beats will add their hostname to the messages they forward, and the syslog input should be adding a [host] field that contains the ip address the message was received from.

If you want the name of the server running logstash you could try something like

```
ruby {
    init => "require 'socket'"
    code => "event.set('some field', Socket.gethostname)"
}

```

---

_[View the full topic](https://discuss.elastic.co/t/logstash-to-logstash-lumberjack-host-details/253390)._
