Use Elasticsearch service for retrieving data from ES


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), 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 (, but it isn't using Elasticsearch service.

Kindly guide me with some resources and docs.


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