Execute Kibana savedsearch using curl command


(Mirko Bornivelli) #1

Hi all,

i have create a new savedsearch on Kibana.

Now I need to use the curl command from my terminal to recall the results of this savedsearch.

The name of the savedsearch is :

S-Cert-Feed

How can i do this task? What is the sintax to invoke this savedsearch?

Best regards,
Mirko Bornivelli


#2

Hi @elborni96,

Saved Searches are not supposed to be executed outside of Kibana context. One option though, would be using CSV export like this via Copy POST URL:

Also you can open Inspect panel for the saved search and copy actual request from the Request tab to execute it directly against ES, but it's not scaleable. So yeah, it depends on what you're trying to achieve exactly.

Best,
Oleg


(Mirko Bornivelli) #3

Hi @azasypkin

These are the output of my savedsearch:

I need to create a curl string from my terminal to get these results on json format.

It's possible?

Alternatively, can i use a curl string to get events from elasticsearch index?

Thanks,
Mirko


#4

Not through Kibana API.

Alternatively, can i use a curl string to get events from elasticsearch index?

Yeah, of course, if you know the query and have access to the ES instance you can get this data directly from ES. To get the query you can use Inspect for example:


(Mirko Bornivelli) #5

@azasypkin

Thank you so much for the support.

Best regards,
Mirko Bornivelli


(system) closed #6

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