<?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 execute a saved search using Splunk's REST API in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358700#M106012</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Please try: &lt;BR /&gt;
&lt;CODE&gt;curl --silent -k -u '&amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;' &lt;A href="https://localhost:8089/servicesNS/admin/search/search/jobs/export" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/search/jobs/export&lt;/A&gt; -d search=" savedsearch &amp;lt;saved_search_name&amp;gt;"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You can also use the following if you would like the results in CSV format:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;curl --silent -k -u '&amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;' &lt;A href="https://localhost:8089/servicesNS/admin/search/search/jobs/export?output_mode=csv" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/search/jobs/export?output_mode=csv&lt;/A&gt; -d search=" savedsearch &amp;lt;saved_search_name&amp;gt;"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Kind regards,&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2017 13:12:41 GMT</pubDate>
    <dc:creator>hhGA</dc:creator>
    <dc:date>2017-05-03T13:12:41Z</dc:date>
    <item>
      <title>How to execute a saved search using Splunk's REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358699#M106011</link>
      <description>&lt;P&gt;I know this question has been asked a few times but none of the answers seem to work for me. &lt;BR /&gt;
I have a saved search called usernameSearch and want to execute it synchronously using Splunk's REST API. &lt;/P&gt;

&lt;P&gt;Executing POST &lt;A href="https://localhost:8089/services/saved/searches/usernameSearch/dispatch"&gt;https://localhost:8089/services/saved/searches/usernameSearch/dispatch&lt;/A&gt; gives me the following response but not the results of the search. How can I possibly get the result synchronously ?&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;sid&amp;gt;admin__admin__twsdashboard__usernameSearch_at_1493721538_18&amp;lt;/sid&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 16:03:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358699#M106011</guid>
      <dc:creator>subhashishfid</dc:creator>
      <dc:date>2017-05-02T16:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a saved search using Splunk's REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358700#M106012</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Please try: &lt;BR /&gt;
&lt;CODE&gt;curl --silent -k -u '&amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;' &lt;A href="https://localhost:8089/servicesNS/admin/search/search/jobs/export" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/search/jobs/export&lt;/A&gt; -d search=" savedsearch &amp;lt;saved_search_name&amp;gt;"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You can also use the following if you would like the results in CSV format:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;curl --silent -k -u '&amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;' &lt;A href="https://localhost:8089/servicesNS/admin/search/search/jobs/export?output_mode=csv" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/search/search/jobs/export?output_mode=csv&lt;/A&gt; -d search=" savedsearch &amp;lt;saved_search_name&amp;gt;"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Kind regards,&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 13:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358700#M106012</guid>
      <dc:creator>hhGA</dc:creator>
      <dc:date>2017-05-03T13:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a saved search using Splunk's REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358701#M106013</link>
      <description>&lt;P&gt;Thanks a lot. This works perfectly !&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 13:21:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358701#M106013</guid>
      <dc:creator>subhashishfid</dc:creator>
      <dc:date>2017-05-03T13:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a saved search using Splunk's REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358702#M106014</link>
      <description>&lt;P&gt;You're welcome.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 13:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358702#M106014</guid>
      <dc:creator>hhGA</dc:creator>
      <dc:date>2017-05-03T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a saved search using Splunk's REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358703#M106015</link>
      <description>&lt;P&gt;I assume you're looking for more like a fetch call??&lt;/P&gt;

&lt;P&gt;Using the npm library axios I would do&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;axios.get(url, {
  auth: {username: 'username', password: 'password'},
  params: {output_mode: 'json', 'search': 'savedsearch usernameSearch'},
})
.then((response)=&amp;gt;{
  console.log(response);
})
.catch((err)=&amp;gt;{
  console.log('err', err);
});
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 May 2018 04:48:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358703#M106015</guid>
      <dc:creator>AlisonHaire</dc:creator>
      <dc:date>2018-05-16T04:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a saved search using Splunk's REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358704#M106016</link>
      <description>&lt;P&gt;@hhGA  I m trying to get saved search results from browser, so i m using below url&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;A href="https://hostname:8089/servicesNS/nobody/OMEGA/search/jobs/export?output_mode=json&amp;amp;count=1&amp;amp;search=savedsearch" target="test_blank"&gt;https://hostname:8089/servicesNS/nobody/OMEGA/search/jobs/export?output_mode=json&amp;amp;count=1&amp;amp;search=savedsearch&lt;/A&gt; &amp;lt;savedsearch_name&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I m getting below output , anyidea wht is wrong here&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;{"preview":false,"lastrow":true}&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 01:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358704#M106016</guid>
      <dc:creator>vasanthi77</dc:creator>
      <dc:date>2019-09-03T01:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a saved search using Splunk's REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358705#M106017</link>
      <description>&lt;P&gt;&lt;CODE&gt;{"preview":false,"lastrow":true}&lt;/CODE&gt; is returned when the saved search has 0 results. &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 10:48:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/358705#M106017</guid>
      <dc:creator>simon_lavigne</dc:creator>
      <dc:date>2020-01-29T10:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a saved search using Splunk's REST API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/544390#M154186</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I’m having an issue related to my savedsearch. I created a saved search and scheduled it. But it is not showing up when try with the API endpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;/search/saved/searches.&lt;/P&gt;&lt;P&gt;I can only see few of the reports.&lt;/P&gt;&lt;P&gt;any recommendations?&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 18:31:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-saved-search-using-Splunk-s-REST-API/m-p/544390#M154186</guid>
      <dc:creator>revanthammineni</dc:creator>
      <dc:date>2021-03-18T18:31:50Z</dc:date>
    </item>
  </channel>
</rss>

