# Unknow this error

**URL:** <https://discuss.elastic.co/t/unknow-this-error/46632>\
**Category:** Logstash\
**Created:** [April 7, 2016, 7:31am UTC](https://discuss.elastic.co/t/unknow-this-error/46632 "2016-04-07T07:31:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inbeo\_Beo](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Inbeo\_Beo](https://discuss.elastic.co/u/Inbeo_Beo)\
**Post date:** [April 7, 2016, 7:31am UTC](https://discuss.elastic.co/t/unknow-this-error/46632/1 "2016-04-07T07:31:51Z")

</div>

I have a file logstash.conf

input {  
beats {  
port =\> 5044  
}  
}

output {  
elasticsearch {  
hosts =\> "localhost:9200"  
index =\> "%{[@metadata][beat]}-%{+YYYY.MM.dd}"  
document\_type =\> "%{[@metadata][type]}"  
}

when i use command

/opt/logstash/bin/logstash --configtest -f /etc/logstash/conf.d/logstash.conf --\> Error

Pls, show me where my wrong

p/s: i install Elasticsearch on server with IP 10.151.130. 1

---

<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:** [April 7, 2016, 7:47am UTC](https://discuss.elastic.co/t/unknow-this-error/46632/2 "2016-04-07T07:47:38Z")

</div>

Well, what's the exact error? If you're running Logstash 2.3, see the issue below.

> <https://github.com/elastic/logstash/issues/4933>

---

<div class="post-metadata">

**Author:** ![Inbeo\_Beo](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Inbeo\_Beo](https://discuss.elastic.co/u/Inbeo_Beo)\
**Post date:** [April 7, 2016, 7:51am UTC](https://discuss.elastic.co/t/unknow-this-error/46632/3 "2016-04-07T07:51:03Z")

</div>

Well, this is report when i debug this file

Unknown setting 'hosts' for elasticsearch {:level=\>:error}  
Error: Something is wrong with your configuration.

---

<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:** [April 7, 2016, 7:54am UTC](https://discuss.elastic.co/t/unknow-this-error/46632/4 "2016-04-07T07:54:09Z")

</div>

Please consult the documentation of your version of Logstash. You'll see that there is no `hosts` option (but there is a `host` option that works almost the same).

---

<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 6, 2017, 5:03am UTC](https://discuss.elastic.co/t/unknow-this-error/46632/5 "2017-07-06T05:03:21Z")

</div>


