# External plugin connectivity with Elastic search

**URL:** <https://discuss.elastic.co/t/external-plugin-connectivity-with-elastic-search/328552>\
**Category:** Elasticsearch\
**Created:** [March 26, 2023, 10:48am UTC](https://discuss.elastic.co/t/external-plugin-connectivity-with-elastic-search/328552 "2023-03-26T10:48:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anik-27](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anik-27/32/110233_2.png) [@anik-27](https://discuss.elastic.co/u/anik-27)\
**Post date:** [March 26, 2023, 10:48am UTC](https://discuss.elastic.co/t/external-plugin-connectivity-with-elastic-search/328552/1 "2023-03-26T10:48:19Z")

</div>

Hello there !

I have created an external plugin using React in Kibana  
Now I want to connect that to the Elastic search and use the data stored in one of the index.  
What are the possible options to achieve this ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 26, 2023, 10:51am UTC](https://discuss.elastic.co/t/external-plugin-connectivity-with-elastic-search/328552/2 "2023-03-26T10:51:15Z")

</div>

Have you looked at [the official Javascript client](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html)?

---

<div class="post-metadata">

**Author:** ![anik-27](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anik-27/32/110233_2.png) [@anik-27](https://discuss.elastic.co/u/anik-27)\
**Post date:** [March 26, 2023, 10:55am UTC](https://discuss.elastic.co/t/external-plugin-connectivity-with-elastic-search/328552/3 "2023-03-26T10:55:21Z")

</div>

I had no idea on how to achieve this !  
Thanks, I will look into the javascript client

---

<div class="post-metadata">

**Author:** ![anik-27](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anik-27/32/110233_2.png) [@anik-27](https://discuss.elastic.co/u/anik-27)\
**Post date:** [March 30, 2023, 11:31am UTC](https://discuss.elastic.co/t/external-plugin-connectivity-with-elastic-search/328552/4 "2023-03-30T11:31:17Z")

</div>

Hi @Christian_Dahlqvist  
I did explore the Javascript client docs.  
I also want to know if there is any way to connect Elasticsearch directly to the react plugin without using node.js and use the data stored in one of my index.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 30, 2023, 11:41am UTC](https://discuss.elastic.co/t/external-plugin-connectivity-with-elastic-search/328552/5 "2023-03-30T11:41:38Z")

</div>

As Elasticsearch is a datastore I believe that this is generally not recommended as the client would need direct access to your cluster and also have access to login credentials. I am not a Javascript developer so can not comment on whether the Javascript client can be used directly from the client or not.

---

<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:** [April 27, 2023, 11:42am UTC](https://discuss.elastic.co/t/external-plugin-connectivity-with-elastic-search/328552/6 "2023-04-27T11:42:26Z")

</div>

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