Splunk Search
Highlighted

How to use the REST API to fetch and filter results from a saved search?

Explorer

I am using REST service - my requirement is to use Splunk REST URL to fetch details from a saved search .. but I want a filter while fetching details. How can I do this?

Highlighted

Re: How to use the REST API to fetch and filter results from a saved search?

SplunkTrust
SplunkTrust

You should provide more details on this, like do you want to query the details of the saved search and filter the details or do you want to get back the search results of a saved search and filter on the search results?

cheers, MuS

Highlighted

Re: How to use the REST API to fetch and filter results from a saved search?

Esteemed Legend

Look here:

http://docs.splunk.com/Documentation/Splunk/6.0.9/RESTAPI/RESTsearches#Get_search_results

So from the search bar, like this:

| rest services/search/jobs/<HereIsYourJobID>/results/  | <your filter stuff here>
0 Karma
Highlighted

Re: How to use the REST API to fetch and filter results from a saved search?

Path Finder
0 Karma