<?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: Does anyone know how to convert a savedsearch request to a REST API endpoint request? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Does-anyone-know-how-to-convert-a-savedsearch-request-to-a-REST/m-p/138219#M28417</link>
    <description>&lt;P&gt;For the rest call&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k u user:password &lt;A href="https://blah.local:8089/servicesNS/svc_usr_bob/apm_snpm/saved/searches/apm_cvc_qtr_bh_test/dispatch" target="test_blank"&gt;https://blah.local:8089/servicesNS/svc_usr_bob/apm_snpm/saved/searches/apm_cvc_qtr_bh_test/dispatch&lt;/A&gt; -d trigger_actions=1 -d args.startDate="-3d" -d args.endDate="-0d"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in the saved search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=service-CombinedForwardingPlaneQueueGroupServiceIngressLogRecord earliest=$args.startDate$ latest=$args.endDate$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I should work for the NSA after decrypting the Splunk doco&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2014 00:02:49 GMT</pubDate>
    <dc:creator>kmugglet</dc:creator>
    <dc:date>2014-12-03T00:02:49Z</dc:date>
    <item>
      <title>Does anyone know how to convert a savedsearch request to a REST API endpoint request?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-anyone-know-how-to-convert-a-savedsearch-request-to-a-REST/m-p/138216#M28414</link>
      <description>&lt;P&gt;Does anyone know how to convert this savedsearch request to a REST endpoint request?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|savedsearch mysearch replace_me="value"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can run a normal savedsearch "apm_cvc_qtr_bh_test" using curl in the app apm_snpm&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u svc_user_bob:password https://localhost:8089/servicesNS/svc_user_bob/apm_snpm/saved/searches/apm_cvc_qtr_bh_test/dispatch -d trigger_actions=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but i don't know how to pass the replace_me key and value&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:17:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-anyone-know-how-to-convert-a-savedsearch-request-to-a-REST/m-p/138216#M28414</guid>
      <dc:creator>kmugglet</dc:creator>
      <dc:date>2020-09-28T18:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to convert a savedsearch request to a REST API endpoint request?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-anyone-know-how-to-convert-a-savedsearch-request-to-a-REST/m-p/138217#M28415</link>
      <description>&lt;P&gt;See this example&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/8945/how-to-start-a-saved-search-using-rest-api.html"&gt;http://answers.splunk.com/answers/8945/how-to-start-a-saved-search-using-rest-api.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;you can just give your "|savedsearch" command as search query in curl.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2014 21:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-anyone-know-how-to-convert-a-savedsearch-request-to-a-REST/m-p/138217#M28415</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-12-02T21:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to convert a savedsearch request to a REST API endpoint request?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-anyone-know-how-to-convert-a-savedsearch-request-to-a-REST/m-p/138218#M28416</link>
      <description>&lt;P&gt;Thanks, but I couldn't see in there how to pass the values for a template search... &lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2014 00:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-anyone-know-how-to-convert-a-savedsearch-request-to-a-REST/m-p/138218#M28416</guid>
      <dc:creator>kmugglet</dc:creator>
      <dc:date>2014-12-03T00:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to convert a savedsearch request to a REST API endpoint request?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-anyone-know-how-to-convert-a-savedsearch-request-to-a-REST/m-p/138219#M28417</link>
      <description>&lt;P&gt;For the rest call&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k u user:password &lt;A href="https://blah.local:8089/servicesNS/svc_usr_bob/apm_snpm/saved/searches/apm_cvc_qtr_bh_test/dispatch" target="test_blank"&gt;https://blah.local:8089/servicesNS/svc_usr_bob/apm_snpm/saved/searches/apm_cvc_qtr_bh_test/dispatch&lt;/A&gt; -d trigger_actions=1 -d args.startDate="-3d" -d args.endDate="-0d"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in the saved search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=service-CombinedForwardingPlaneQueueGroupServiceIngressLogRecord earliest=$args.startDate$ latest=$args.endDate$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I should work for the NSA after decrypting the Splunk doco&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2014 00:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-anyone-know-how-to-convert-a-savedsearch-request-to-a-REST/m-p/138219#M28417</guid>
      <dc:creator>kmugglet</dc:creator>
      <dc:date>2014-12-03T00:02:49Z</dc:date>
    </item>
  </channel>
</rss>

