Load saved queries

Hello!

Is there a way to recover saved queries in kibana via Java api (or REST)?

Thanks a lot!

Recover? What are you trying to do?

I am storing some queries in kibana, for example idUser:244 is saved as "Query1".
I need to execute "Query1" later, vía api, to get the results.

Thanks!

Well there is https://www.elastic.co/guide/en/elasticsearch/reference/2.3/search-template.html.

Thankyou Warkolm

Well, it's close, but is not what I wanted. For example, I need something like this to get the results:

GET /_search/saved_queries/queryNameToRun

And something like this to get the stored queries:

GET /_search/saved_queries/list

Thank you anyway!

Ahh ok, now I get you.

I can't see anything in the docs around this, can you raise an issue on Github? If we don't have something, it's a great addition, if we do, we can make that clearer :slight_smile:

Ok, i will try :slight_smile:

1 Like