# Use Elasticsearch service for retrieving data from ES

**URL:** https://discuss.elastic.co/t/use-elasticsearch-service-for-retrieving-data-from-es/339099
**Category:** Kibana
**Tags:** kibana-plugin-development
**Created:** [July 24, 2023, 12:43pm UTC](https://discuss.elastic.co/t/use-elasticsearch-service-for-retrieving-data-from-es/339099 "2023-07-24T12:43:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)
#### Post date: [July 24, 2023, 12:43pm UTC](https://discuss.elastic.co/t/use-elasticsearch-service-for-retrieving-data-from-es/339099/1 "2023-07-24T12:43:17Z")

</div>

Hi,

How to use **Elasticsearch service inside plugin**?

I am developing an **external plugin in Kibana 8.1.1 using React.**

I want to **retrieve data from ES at server side using the Elasticsearch service**. I couldn't find any documentation or examples except for this ([Elasticsearch service | Kibana Guide [8.8] | Elastic](https://www.elastic.co/guide/en/kibana/current/elasticsearch-service.html)), which doesn't have any valuable information and moreover the link to the service given within is also wrong.

I looked into this example as well ([https://github.com/elastic/kibana/tree/8fcd199d2a8f7368779552c659d34c0d34b9b87b/examples/search\_examples](https://github.com/elastic/kibana/tree/8fcd199d2a8f7368779552c659d34c0d34b9b87b/examples/search_examples)), but it isn't using Elasticsearch service.

Kindly guide me with some resources and docs.

Thanks

---

<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 21, 2023, 12:43pm UTC](https://discuss.elastic.co/t/use-elasticsearch-service-for-retrieving-data-from-es/339099/2 "2023-08-21T12:43:51Z")

</div>

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