<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use the REST API to fetch and filter results from a saved search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-fetch-and-filter-results-from-a-saved/m-p/680403#M232554</link>
    <description>&lt;P&gt;Here is my sample. I want to get all saved search then from the returned result I want to filter in the field called "search" to find searchstring that contains something like "| collect".&lt;BR /&gt;&lt;BR /&gt;So&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where (search LIKE "%| collect%") &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do the job&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Full Search String:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /servicesNS/-/-/saved/searches | table title, cron_schedule next_scheduled_time eai:acl.owner actions eai:acl.app action.email action.email.to dispatch.earliest_time dispatch.latest_time search
| where (search LIKE "%| collect%")&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Add-On&lt;/STRONG&gt;&lt;BR /&gt;Let's say I want to filter search a field called "action.summary_index" for the value equals to 1, I can do as below. Enclose the field name with dollar sign ($)&lt;BR /&gt;&lt;BR /&gt;| rest /servicesNS/-/-/saved/searches | table title, cron_schedule next_scheduled_time eai:acl.owner actions eai:acl.app action.email action.email.to dispatch.earliest_time dispatch.latest_time search *&lt;BR /&gt;&lt;STRONG&gt;| where $action.summary_index$ = "1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2024 17:05:00 GMT</pubDate>
    <dc:creator>JL99</dc:creator>
    <dc:date>2024-03-12T17:05:00Z</dc:date>
    <item>
      <title>How to use the REST API to fetch and filter results from a saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-fetch-and-filter-results-from-a-saved/m-p/254253#M76134</link>
      <description>&lt;P&gt;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?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 08:57:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-fetch-and-filter-results-from-a-saved/m-p/254253#M76134</guid>
      <dc:creator>samkaj</dc:creator>
      <dc:date>2016-05-19T08:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to fetch and filter results from a saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-fetch-and-filter-results-from-a-saved/m-p/254254#M76135</link>
      <description>&lt;P&gt;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?&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 22:47:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-fetch-and-filter-results-from-a-saved/m-p/254254#M76135</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-05-19T22:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to fetch and filter results from a saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-fetch-and-filter-results-from-a-saved/m-p/254255#M76136</link>
      <description>&lt;P&gt;Look here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.9/RESTAPI/RESTsearches#Get_search_results"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.9/RESTAPI/RESTsearches#Get_search_results&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So from the search bar, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest services/search/jobs/&amp;lt;HereIsYourJobID&amp;gt;/results/  | &amp;lt;your filter stuff here&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 May 2016 01:23:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-fetch-and-filter-results-from-a-saved/m-p/254255#M76136</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-29T01:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to fetch and filter results from a saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-fetch-and-filter-results-from-a-saved/m-p/254256#M76137</link>
      <description>&lt;P&gt;Here: &lt;BR /&gt;
&lt;A href="https://www.splunk.com/blog/2013/06/18/getting-data-from-your-rest-apis-into-splunk.html#"&gt;https://www.splunk.com/blog/2013/06/18/getting-data-from-your-rest-apis-into-splunk.html#&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;I used this App. Very simple to configure. &lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 11:23:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-fetch-and-filter-results-from-a-saved/m-p/254256#M76137</guid>
      <dc:creator>AnujaJ</dc:creator>
      <dc:date>2019-03-05T11:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to fetch and filter results from a saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-fetch-and-filter-results-from-a-saved/m-p/680403#M232554</link>
      <description>&lt;P&gt;Here is my sample. I want to get all saved search then from the returned result I want to filter in the field called "search" to find searchstring that contains something like "| collect".&lt;BR /&gt;&lt;BR /&gt;So&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where (search LIKE "%| collect%") &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do the job&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Full Search String:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /servicesNS/-/-/saved/searches | table title, cron_schedule next_scheduled_time eai:acl.owner actions eai:acl.app action.email action.email.to dispatch.earliest_time dispatch.latest_time search
| where (search LIKE "%| collect%")&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Add-On&lt;/STRONG&gt;&lt;BR /&gt;Let's say I want to filter search a field called "action.summary_index" for the value equals to 1, I can do as below. Enclose the field name with dollar sign ($)&lt;BR /&gt;&lt;BR /&gt;| rest /servicesNS/-/-/saved/searches | table title, cron_schedule next_scheduled_time eai:acl.owner actions eai:acl.app action.email action.email.to dispatch.earliest_time dispatch.latest_time search *&lt;BR /&gt;&lt;STRONG&gt;| where $action.summary_index$ = "1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 17:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-fetch-and-filter-results-from-a-saved/m-p/680403#M232554</guid>
      <dc:creator>JL99</dc:creator>
      <dc:date>2024-03-12T17:05:00Z</dc:date>
    </item>
  </channel>
</rss>

