# Kibana Client Talk to ES Directly?

**URL:** <https://discuss.elastic.co/t/kibana-client-talk-to-es-directly/66658>\
**Category:** Kibana\
**Created:** [November 20, 2016, 10:01pm UTC](https://discuss.elastic.co/t/kibana-client-talk-to-es-directly/66658 "2016-11-20T22:01:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yongtao](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@yongtao](https://discuss.elastic.co/u/yongtao)\
**Post date:** [November 20, 2016, 10:01pm UTC](https://discuss.elastic.co/t/kibana-client-talk-to-es-directly/66658/1 "2016-11-20T22:01:15Z")

</div>

Hi,

Does Kibana client (the part that runs inside my browser) ever send queries directly to ES? Or it always go through Kibana server? I'm trying to decide if I need to expose ES endpoint to all my Kibana users or just the Kibana endpoint is enough.

Thanks.  
Yongtao

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 21, 2016, 6:35am UTC](https://discuss.elastic.co/t/kibana-client-talk-to-es-directly/66658/2 "2016-11-21T06:35:12Z")

</div>

> Does Kibana client (the part that runs inside my browser) ever send queries directly to ES?

No.

> Or it always go through Kibana server?

Yes.

(The above is true for Kibana 4 and later.)

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [November 22, 2016, 10:39pm UTC](https://discuss.elastic.co/t/kibana-client-talk-to-es-directly/66658/3 "2016-11-22T22:39:03Z")

</div>

To be clear, every request from the browser does go through the Kibana server, but if you look at the requests, you'll see they are all prefixed with `/elasticsearch`. The Kibana server proxies the request to elasticsearch (preserving your user session if you are using Shield/Security).

This was mostly done to avoid CORS issues, but we also do a very small amount of query protection as well, like stopping DELETE requests, for example.

---

<div class="post-metadata">

**Author:** ![yongtao](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@yongtao](https://discuss.elastic.co/u/yongtao)\
**Post date:** [December 1, 2016, 7:26pm UTC](https://discuss.elastic.co/t/kibana-client-talk-to-es-directly/66658/4 "2016-12-01T19:26:34Z")

</div>

Thank you both!

---

<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:** [December 29, 2016, 7:26pm UTC](https://discuss.elastic.co/t/kibana-client-talk-to-es-directly/66658/5 "2016-12-29T19:26:43Z")

</div>

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