# Logstash Elasticsearch output host with no port

**URL:** <https://discuss.elastic.co/t/logstash-elasticsearch-output-host-with-no-port/57294>\
**Category:** Logstash\
**Created:** [August 5, 2016, 1:43am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-output-host-with-no-port/57294 "2016-08-05T01:43:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wldbs0508](https://avatars.discourse-cdn.com/v4/letter/w/cab0a1/32.png) [@wldbs0508](https://discuss.elastic.co/u/wldbs0508)\
**Post date:** [August 5, 2016, 1:43am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-output-host-with-no-port/57294/1 "2016-08-05T01:43:35Z")

</div>

Hi,

I would like to use Logstash to index data into Elasticsearch. I have to use VIP to connect to Elasticsearch cluster. My VIP already contains default port number. For example, my host name is "[myhost.com](http://myhost.com)" and I generated VIP using "[myhost.com:9200](http://myhost.com:9200)". So my VIp is "[myvip.com](http://myvip.com)" but it contains 9200 port. The problem I encountered is that Logstash automatically add ":9200" after my host list. My Logstash configuration file includes this line  
" hosts =\> ["[myvip.com](http://myvip.com)"]"  
but when I run Logstash, it automatically add ":9200". How to stop to add ":9200" ?  
If anyone knows solution, please help me!  
Thanks,  
Jiyoon

---

<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, 4:44am UTC](https://discuss.elastic.co/t/logstash-elasticsearch-output-host-with-no-port/57294/2 "2017-07-06T04:44:42Z")

</div>

Closed on July 6, 2017, 4:44am UTC


