# Add Logstash host name to JSON formatted logstream

**URL:** <https://discuss.elastic.co/t/add-logstash-host-name-to-json-formatted-logstream/140567>\
**Category:** Logstash\
**Created:** [July 18, 2018, 1:29pm UTC](https://discuss.elastic.co/t/add-logstash-host-name-to-json-formatted-logstream/140567 "2018-07-18T13:29:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 22, 2018, 6:10pm UTC](https://discuss.elastic.co/t/add-logstash-host-name-to-json-formatted-logstream/140567/2 "2018-07-22T18:10:17Z")

</div>

> ```
> logstash_host {"name":"<hostname of system where log was sent from>"}
> 
> ```

Please copy/paste from Kibana's JSON tab (visible when you expand an event). I want to see what the event _really_ looks like.

See [How can I get the logstash hostname](https://discuss.elastic.co/t/how-can-i-get-the-logstash-hostname/51771) for how to get the Logstash hostname.

---

_[View the full topic](https://discuss.elastic.co/t/add-logstash-host-name-to-json-formatted-logstream/140567)._
