Is there a way to get all visualizations in kibana using curl


(Raji Sankaran) #1

I need to get the list of all visualizations present in kibana. Is there a curl command to do that?

For example,
curl -v http://localhost:9200/.kibana/visualisation


(Lee Drengenberg) #2

/.kibana/visualization/_search should do it


(Raji Sankaran) #3

Thanks. That worked.


(Raji Sankaran) #4

Where do i find documentation on these API's?

I am starting to use the API extensively to create bulk visualizations , search for all visualizations with a particular title pattern and add them to dashboard. It would be useful to get pointers to some documentation so i can optimize my queries accordingly.


(Raji Sankaran) #5

The response to /.kibana/visualization/_search wasnt complete. It said the total visualizations were 36 but it displayed data for only 10 visualizations.
There are actual 36 visualizations in the system. I am not sure why it did not list all the 36. Any pointers?


(Lee Drengenberg) #6

Add the size to the end like this;

/.kibana/visualization/_search?size=40


(Raji Sankaran) #7

of course, it was the size.. I tried limit, offset but not size. My bad. Is there documentation for these?

Thanks.


(Lee Drengenberg) #8

I think this would be the best starting point;

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-uri-request.html


(Raji Sankaran) #9

Thanks.


(system) #10

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