# Connecting to remote es using local Kibana

**URL:** <https://discuss.elastic.co/t/connecting-to-remote-es-using-local-kibana/152795>\
**Category:** Kibana\
**Created:** [October 17, 2018, 9:50am UTC](https://discuss.elastic.co/t/connecting-to-remote-es-using-local-kibana/152795 "2018-10-17T09:50:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![murali\_krishnam\_raju](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@murali\_krishnam\_raju](https://discuss.elastic.co/u/murali_krishnam_raju)\
**Post date:** [October 17, 2018, 9:50am UTC](https://discuss.elastic.co/t/connecting-to-remote-es-using-local-kibana/152795/1 "2018-10-17T09:50:41Z")

</div>

I have installed kibana 6.3 on my local machine and I have elastic search running in aws remote server I have configured end point in kibana.yml file( elastic search url) but when i run the kibana it was throwing authentication error.

 ![Screenshot%20from%202018-10-17%2015-01-45](https://us1.discourse-cdn.com/elastic/original/3X/d/5/d54895d3db7e353ebabc42ffec8ec2fe129f3839.png)

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [October 17, 2018, 11:22am UTC](https://discuss.elastic.co/t/connecting-to-remote-es-using-local-kibana/152795/2 "2018-10-17T11:22:19Z")

</div>

Hey @murali_krishnam_raju,

Do you have security enabled in your ES instance? If yes, then you need to properly configure internal Kibana user with `elasticsearch.username` and `elasticsearch.password` properties in `kibana.yml`, see [https://www.elastic.co/guide/en/kibana/6.x/using-kibana-with-security.html](https://www.elastic.co/guide/en/kibana/6.x/using-kibana-with-security.html).

If not, any verbose Kibana logs would help to figure out what is going on.

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![murali\_krishnam\_raju](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@murali\_krishnam\_raju](https://discuss.elastic.co/u/murali_krishnam_raju)\
**Post date:** [October 17, 2018, 11:59am UTC](https://discuss.elastic.co/t/connecting-to-remote-es-using-local-kibana/152795/3 "2018-10-17T11:59:15Z")

</div>

hey @azasypkin

Thanks for the reply,I have followed the link you have mentioned in the reply, Now it was giving request time out after 3000 sec error. After some time the authorization error comes back even after following the link

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [October 17, 2018, 12:09pm UTC](https://discuss.elastic.co/t/connecting-to-remote-es-using-local-kibana/152795/4 "2018-10-17T12:09:04Z")

</div>

It's hard to suggest anything without seeing logs, you can run Kibana with `--verbose` flag and attach logs here or just its parts that look relevant.

Also make sure that you can access Elasticearch directly using the URL from `elasticsearch.url` (e.g. open `http://{es_host}:{es_port}/_cat` in browser).

---

<div class="post-metadata">

**Author:** ![murali\_krishnam\_raju](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@murali\_krishnam\_raju](https://discuss.elastic.co/u/murali_krishnam_raju)\
**Post date:** [October 17, 2018, 12:15pm UTC](https://discuss.elastic.co/t/connecting-to-remote-es-using-local-kibana/152795/5 "2018-10-17T12:15:00Z")

</div>

@azasypkin  
"listen" has been called (localhost:5601).  
log [12:12:44.822] [debug][config] Marking config path as handled: logging  
log [12:12:44.827] [debug][config] Marking config path as handled: server  
log [12:12:44.827] [debug][server] starting server 🎉  
log [12:12:44.828] [debug][http] registering route handler for [/core]  
log [12:12:44.862] [debug][legacy-platform-proxifier] Event is being forwarded: listening  
log [12:12:44.863] [info][listening][server][http] Server running at [http://localhost:5601](http://localhost:5601)  
log [12:12:44.864] [server][uuid][uuid] Resuming persistent Kibana instance UUID: d431e699-7124-4dda-bb22-5846693fa769  
log [12:12:46.102] [error][status][plugin:elasticsearch@6.4.2] Status changed from yellow to red - Authorization Exception

above is the log output with --verbose command and yes I am getting response on calling the url

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [October 17, 2018, 1:29pm UTC](https://discuss.elastic.co/t/connecting-to-remote-es-using-local-kibana/152795/6 "2018-10-17T13:29:55Z")

</div>

@murali_krishnam_raju, what roles does the user you configured in `elasticsearch.username` have? This user should have `kibana_system` role (built-in `kibana` user should have this role already).

---

<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:** [November 14, 2018, 1:43pm UTC](https://discuss.elastic.co/t/connecting-to-remote-es-using-local-kibana/152795/7 "2018-11-14T13:43:54Z")

</div>

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