How to get Elasticsearch query of a kibana visualization

Hi all,

I'm trying to get elasticsearch query for a kibana visualization in 7.9 version.

When i copy request code present in a visualization and run it in dev tools,i get error.

So what is right procedure to fetch exact elasticsearch query of a kibana visualization?

1 Like

Could you tell what you copied and what is the error message?

I got it!
So basically the coding team wanted elasticsearch query of a kibana visualization to be displayed to be included in the code.

I tried by going to kibana visualization -> Inspect -> view data -> requests -> request-
Copied the query and used the same in dev tools of kibana using GET { query code}

In dev tools:

GET heartbeat-*/_search?pretty
{
  // pasted the inspect code
}

I had typed GET query wrongly.

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