# Elasearch filed take the empty values

**URL:** <https://discuss.elastic.co/t/elasearch-filed-take-the-empty-values/58550>\
**Category:** Elasticsearch\
**Created:** [August 22, 2016, 6:29am UTC](https://discuss.elastic.co/t/elasearch-filed-take-the-empty-values/58550 "2016-08-22T06:29:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![emperor](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@emperor](https://discuss.elastic.co/u/emperor)\
**Post date:** [August 22, 2016, 6:29am UTC](https://discuss.elastic.co/t/elasearch-filed-take-the-empty-values/58550/1 "2016-08-22T06:29:15Z")

</div>

there is a option host,some logstash agent get the empty values,only one get the real values,I define an index template to slove the not\_analyzed,  
what metod does the "host" use ? read the logstash agent hostname or some config?  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/3/3f2ffbe4a65d616c74dcccc728b958fbac5b9d79.png)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 22, 2016, 6:32am UTC](https://discuss.elastic.co/t/elasearch-filed-take-the-empty-values/58550/2 "2016-08-22T06:32:33Z")

</div>

Your post is a little hard to understand, which is ok! 🙂

Are you asking where the `host` value comes from? If you are ingesting data with Logstash, then it comes from the hostname that is running the Logstash process.

---

<div class="post-metadata">

**Author:** ![emperor](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@emperor](https://discuss.elastic.co/u/emperor)\
**Post date:** [August 22, 2016, 7:21am UTC](https://discuss.elastic.co/t/elasearch-filed-take-the-empty-values/58550/3 "2016-08-22T07:21:56Z")

</div>

i have four logstash agent（same config files）,one of them can pass the host value,others is empty,

 ![](https://us1.discourse-cdn.com/elastic/original/2X/c/c9d5c0799c147b75367faee2d40e5bdfd168d096.png)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 22, 2016, 7:29am UTC](https://discuss.elastic.co/t/elasearch-filed-take-the-empty-values/58550/4 "2016-08-22T07:29:50Z")

</div>

Ok, let me move this to the Logstash category, hopefully someone else can help out too.

---

<div class="post-metadata">

**Author:** ![emperor](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@emperor](https://discuss.elastic.co/u/emperor)\
**Post date:** [August 22, 2016, 7:30am UTC](https://discuss.elastic.co/t/elasearch-filed-take-the-empty-values/58550/5 "2016-08-22T07:30:33Z")

</div>

thks

---

<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:** [July 5, 2017, 10:26pm UTC](https://discuss.elastic.co/t/elasearch-filed-take-the-empty-values/58550/6 "2017-07-05T22:26:16Z")

</div>


