How to extract kibana visualization query?

I am moving away from kibana and want to extract all visualization queries from existing dashboard. I want queries to be in such format which I can use directly on elasticsearch to get same result as it is on kibana.
Example: I have an pie chart containing top 10 IP addresses as per the number of hits.
Is it possible to extract queries in such format? If Yes then How it can be achieved ?

1 Like

There isn't a good way to export the real ES queries in bulk, but you can access them manually in the spy tab of each visualization. This is because the queries get generated at execution time.

3 Likes

Thats the thing I wanted !!!
Thanks a lot @Bargs

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