# Connect Kibana to remote Elasticsearch

**URL:** <https://discuss.elastic.co/t/connect-kibana-to-remote-elasticsearch/136900>\
**Category:** Kibana\
**Created:** [June 21, 2018, 2:47pm UTC](https://discuss.elastic.co/t/connect-kibana-to-remote-elasticsearch/136900 "2018-06-21T14:47:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkorunoski](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@mkorunoski](https://discuss.elastic.co/u/mkorunoski)\
**Post date:** [June 21, 2018, 2:47pm UTC](https://discuss.elastic.co/t/connect-kibana-to-remote-elasticsearch/136900/1 "2018-06-21T14:47:40Z")

</div>

Hi everyone.

I am beginner in using Elasticsearch, and Kibana for that matter. I am experiencing problem for which I am not able to find a solution.

First of all, I have an Elasticsearch server with couple of indices, running on IBM Bluemix. I have local Kibana instance that I've configured to connect to that server. All well and good but when I try to create index patterns in Kibana for the particular indices in ES i get "Authentication Error" at the top of my browser with the following stack trace:

> Error: Authentication Exception  
> request/\<@[http://localhost:5601/bundles/commons.bundle.js?v=16588:1:688912](http://localhost:5601/bundles/commons.bundle.js?v=16588:1:688912)  
> processQueue@[http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:132456](http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:132456)  
> scheduleProcessQueue/\<@[http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:133349](http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:133349)  
> $digest@[http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:144239](http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:144239)  
> $apply@[http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:147007](http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:147007)  
> done@[http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:100015](http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:100015)  
> completeRequest@[http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:104697](http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:104697)  
> createHttpBackend/\</xhr.onload@[http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:105435](http://localhost:5601/bundles/vendors.bundle.js?v=16588:58:105435)

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![a5a](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@a5a](https://discuss.elastic.co/u/a5a)\
**Post date:** [June 21, 2018, 3:54pm UTC](https://discuss.elastic.co/t/connect-kibana-to-remote-elasticsearch/136900/2 "2018-06-21T15:54:56Z")

</div>

Hi, welcome to the Elastic Stack!

This suggests that the user you're logged into Kibana as, does not have the right permissions for those indices in Elasticsearch, or that you don't have rights to create objects (like index patterns) in Kibana. What is your security setup in Elasticsearch?

---

<div class="post-metadata">

**Author:** ![mkorunoski](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@mkorunoski](https://discuss.elastic.co/u/mkorunoski)\
**Post date:** [June 21, 2018, 4:05pm UTC](https://discuss.elastic.co/t/connect-kibana-to-remote-elasticsearch/136900/3 "2018-06-21T16:05:29Z")

</div>

Thank you for the reply.

I am using the provided credentials from Bluemix, namely the username and password (I am not certain about other security mechanism that Compose for ES might use, so I have to check that). The browser requests these when starting Kibana. I also specified them in the kibana.yml file before starting it.

I am able to use the Dev Tools page, though.

---

<div class="post-metadata">

**Author:** ![a5a](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@a5a](https://discuss.elastic.co/u/a5a)\
**Post date:** [June 21, 2018, 5:16pm UTC](https://discuss.elastic.co/t/connect-kibana-to-remote-elasticsearch/136900/4 "2018-06-21T17:16:42Z")

</div>

Sounds like you should be asking this question in the IBM Bluemix organization, or speak to your administrator. I did a google search and found this: [https://console.bluemix.net/docs/services/CloudLogAnalysis/qa/faq\_kibana.html#logging\_qa\_no\_data\_dashboard\_kibana](https://console.bluemix.net/docs/services/CloudLogAnalysis/qa/faq_kibana.html#logging_qa_no_data_dashboard_kibana) "What do I do if I get an authentication exception"

---

<div class="post-metadata">

**Author:** ![mkorunoski](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@mkorunoski](https://discuss.elastic.co/u/mkorunoski)\
**Post date:** [June 22, 2018, 8:26am UTC](https://discuss.elastic.co/t/connect-kibana-to-remote-elasticsearch/136900/5 "2018-06-22T08:26:12Z")

</div>

I will.

Thank you for the support.

---

<div class="post-metadata">

**Author:** ![jwiltshire2](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jwiltshire2](https://discuss.elastic.co/u/jwiltshire2)\
**Post date:** [June 27, 2018, 1:05am UTC](https://discuss.elastic.co/t/connect-kibana-to-remote-elasticsearch/136900/6 "2018-06-27T01:05:42Z")

</div>

I have been having the same issue, and it seemed to start this week. We are running Kibana local and connecting to Compose Elastic Search, and it appears that Kibana isn't passing the authorization header to Compose Elastic in some cases. I was able to get it working by adding this to kibana.yml:  
elasticsearch.customHeaders: { Authorization: Basic XXXXXXXetc }  
where XXXXXXXetc is the Base64 encoding of the string id:password

I continue to let elasticsearch.requestHeadersWhitelist default. I haven't thoroughly tested but the first few pages that were receiving 401 status codes are now rendering correctly; hope this works for you.

---

<div class="post-metadata">

**Author:** ![mkorunoski](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@mkorunoski](https://discuss.elastic.co/u/mkorunoski)\
**Post date:** [June 27, 2018, 7:18am UTC](https://discuss.elastic.co/t/connect-kibana-to-remote-elasticsearch/136900/7 "2018-06-27T07:18:26Z")

</div>

That fixed it for me. I am now able to create index patterns and do the visualization.

Thank you so much!

---

<div class="post-metadata">

**Author:** ![sncha](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@sncha](https://discuss.elastic.co/u/sncha)\
**Post date:** [July 22, 2018, 8:01pm UTC](https://discuss.elastic.co/t/connect-kibana-to-remote-elasticsearch/136900/8 "2018-07-22T20:01:41Z")

</div>

Thanks James...

It worked for me as well 🙂 🙂 🙂

---

<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:** [August 19, 2018, 8:01pm UTC](https://discuss.elastic.co/t/connect-kibana-to-remote-elasticsearch/136900/9 "2018-08-19T20:01:41Z")

</div>

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