# Logs being tagged with IP instead of hostname

**URL:** <https://discuss.elastic.co/t/logs-being-tagged-with-ip-instead-of-hostname/121076>\
**Category:** Logstash\
**Created:** [February 22, 2018, 3:49pm UTC](https://discuss.elastic.co/t/logs-being-tagged-with-ip-instead-of-hostname/121076 "2018-02-22T15:49:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spiffytech](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spiffytech/32/28062_2.png) [@spiffytech](https://discuss.elastic.co/u/spiffytech)\
**Post date:** [February 22, 2018, 3:49pm UTC](https://discuss.elastic.co/t/logs-being-tagged-with-ip-instead-of-hostname/121076/1 "2018-02-22T15:49:31Z")

</div>

I have some logs collected with logspout+logspout-logstash which are stored with `host: x.x.x.x` instead of `host: foo.example.com`. Where does the `host` field come from? Does Logstash generate it, or is it fed in from the collector?

---

<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:** [March 22, 2018, 3:50pm UTC](https://discuss.elastic.co/t/logs-being-tagged-with-ip-instead-of-hostname/121076/2 "2018-03-22T15:50:18Z")

</div>

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