Curl usage with Elasticsearch 6.1.1

(pitt) #1


I just update my Elasticsearch 4.6 to 6.1.1

With 4.6 version, I use this command line to get all VISUALISATION ans all DASHBOARD:

curl -XPOST 'http://xx.xx.xx.xx:9200/.kibana/_search?type=visualization&pretty=2&size=1000'
curl -XPOST 'http://xx.xx.xx.xx:9200/.kibana/_search?type=dashboard&pretty=2&size=1000

Do you know with 6.1.1 version of elasticsearch wich command line can show the same result ?


(Val Crettaz) #2

Have you tried this?

curl -XPOST 'http://x.x.x.x:9200/.kibana/_search?q=type:visualization&pretty=true&size=1000'
curl -XPOST 'http://x.x.x.x:9200/.kibana/_search?q=type:dashboard&pretty=true&size=1000'

(pitt) #3


It's ok for dashboard curl.

But for the first curl. i just have some lines. But I don't have all visualization.
I increase to size=10000. But same pb.

(Val Crettaz) #4

How many do you currently get, how many viz do you have in the .kibana index, and how many do you need to retrieve?

PS: IP was a a private IP so it doesn't matter that much, but I edited :wink:

(pitt) #5

I juste have 10 visualization.

I need to have 370 viz

(Val Crettaz) #6

&size=1000 should do the trick, not sure why it doesn't work for you

(pitt) #7

Now it's ok i just restart elasticsearch.
Thank you very much.

(system) #8

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