# Kibana 502 error after changing ES URL in kibana.yml

**URL:** https://discuss.elastic.co/t/kibana-502-error-after-changing-es-url-in-kibana-yml/164370
**Category:** Kibana
**Created:** [January 15, 2019, 8:35pm UTC](https://discuss.elastic.co/t/kibana-502-error-after-changing-es-url-in-kibana-yml/164370 "2019-01-15T20:35:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jwalls](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jwalls](https://discuss.elastic.co/u/jwalls)
#### Post date: [January 15, 2019, 8:35pm UTC](https://discuss.elastic.co/t/kibana-502-error-after-changing-es-url-in-kibana-yml/164370/1 "2019-01-15T20:35:53Z")

</div>

So I am trying to set up Kibana with elasticsearch. I have indices set up and can be viewed in terminal. I couldn't get the data linked to kibana, but I realized that kibana defaults to localhost:9200v in kibana.yml. So I changed it to the url of the cluster I'm using, and upon reloading, i get a 502 error in kibana browser. either that or "Kibana server is not ready yet." It changes depending on the refresh. If i comment out the ES URL i can get back to kibana in browser (with no data to load of course).

I am able to curl the kibana url at 5601 (it's not localhost in my situation) and also get the "kibana server is not ready yet"

---

<div class="post-metadata">

### Author: ![timroes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timroes/32/19712_2.png) [@timroes](https://discuss.elastic.co/u/timroes)
#### Post date: [January 17, 2019, 1:28pm UTC](https://discuss.elastic.co/t/kibana-502-error-after-changing-es-url-in-kibana-yml/164370/2 "2019-01-17T13:28:16Z")

</div>

Could you please check the log output of the Kibana server where it's started. It should hold information on why it's not ready, and what it's stuck on.

---

<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: [February 14, 2019, 1:28pm UTC](https://discuss.elastic.co/t/kibana-502-error-after-changing-es-url-in-kibana-yml/164370/3 "2019-02-14T13:28:24Z")

</div>

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