# Logstash - Using a VIP output - hosts

**URL:** <https://discuss.elastic.co/t/logstash-using-a-vip-output-hosts/128888>\
**Category:** Logstash\
**Created:** [April 20, 2018, 1:49pm UTC](https://discuss.elastic.co/t/logstash-using-a-vip-output-hosts/128888 "2018-04-20T13:49:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabharadwaj](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@sabharadwaj](https://discuss.elastic.co/u/sabharadwaj)\
**Post date:** [April 20, 2018, 1:49pm UTC](https://discuss.elastic.co/t/logstash-using-a-vip-output-hosts/128888/1 "2018-04-20T13:49:58Z")

</div>

I have tried searching existing threads but couldnt find any solution to this problem

We are trying to use a Elasticsearch cluster VIP in Logstash but it appends 9200 to the VIP..  
It doesnt work even if use [globalogs.webix.com:443](http://globalogs.webix.com:443)

How do I bell this cat ?

> Blockquote

output {  
elasticsearch {  
user =\> elastic  
password =\> eintadmin  
hosts =\> "https:/globalogs.webix.com:443"  
index =\> "dataset"  
ssl =\> true  
ssl\_certificate\_verification =\> false  
}

> Blockquote

---

<div class="post-metadata">

**Author:** ![Evesy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/evesy/32/29520_2.png) [@Evesy](https://discuss.elastic.co/u/Evesy)\
**Post date:** [April 20, 2018, 2:04pm UTC](https://discuss.elastic.co/t/logstash-using-a-vip-output-hosts/128888/2 "2018-04-20T14:04:02Z")

</div>

What version of Logstash & Elasticsearch output plugin are you using?

We have the below in our Elasticsearch output and it works as expected:  
`hosts => ["elastic.company.tld:443"]`

You do have a typo in your address `https:/globalogs`, missing an extra `/`... but if you're specifying the `ssl => true` it assumes https so you can omit that bit entirely

---

<div class="post-metadata">

**Author:** ![sabharadwaj](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@sabharadwaj](https://discuss.elastic.co/u/sabharadwaj)\
**Post date:** [April 20, 2018, 3:49pm UTC](https://discuss.elastic.co/t/logstash-using-a-vip-output-hosts/128888/3 "2018-04-20T15:49:39Z")

</div>

Thanks, that resolved the connection issue

I am now getting this error:

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

---

<div class="post-metadata">

**Author:** ![Evesy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/evesy/32/29520_2.png) [@Evesy](https://discuss.elastic.co/u/Evesy)\
**Post date:** [April 20, 2018, 7:01pm UTC](https://discuss.elastic.co/t/logstash-using-a-vip-output-hosts/128888/4 "2018-04-20T19:01:10Z")

</div>

You'll need to add the certificate (.pem) to either the java trust store, or point to its location on disk using the `cacert` option.

I would expect `ssl_certificate_verification` to mean you don't have to do this but there a several threads out there that seem to indicate this option isn't honoured:

> <https://github.com/logstash-plugins/logstash-output-http/issues/21>

  

> <https://github.com/logstash-plugins/logstash-output-http/issues/46>

However disabling certificate verification seems like generally something you should avoid anyway

---

<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:** [May 18, 2018, 7:01pm UTC](https://discuss.elastic.co/t/logstash-using-a-vip-output-hosts/128888/5 "2018-05-18T19:01:14Z")

</div>

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