<?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 just run a search and stream the results back? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/666225#M228551</link>
    <description>&lt;P&gt;Need help in the splunk api curl query, i am seeing the below error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -k -u apiuser:password "https://10.236.141.0:8089/services/search/jobs/export" -d search="search index=address-validation earliest=-15m latest=now source=\"eventhub://sams-jupiter-prod-scus-logs-premium-1.servicebus.windows.net/list-service;\" | stats dc(kubernetes.pod_name) as pod_count"

&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
&amp;lt;messages&amp;gt;
&amp;lt;msg type="ERROR"&amp;gt;Unbalanced quotes.&amp;lt;/msg&amp;gt;
&amp;lt;/messages&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sometimes i dont see the result either:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -k -u user:password https://10.236.141.0:8089/services/search/jobs/export -d search="search index=address-validation earliest=-15m latest=now source=eventhub://sams-jupiter-prod-wus-logs-premium-1.servicebus.windows.net/address-validation; | stats dc(kubernetes.pod_name) as pod_count"



"&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;

&amp;lt;results preview='0'&amp;gt;

&amp;lt;meta&amp;gt;

&amp;lt;fieldOrder /&amp;gt;

&amp;lt;/meta&amp;gt;

&amp;lt;messages&amp;gt;

  &amp;lt;msg type="INFO"&amp;gt;Your timerange was substituted based on your search string&amp;lt;/msg&amp;gt;

&amp;lt;/messages&amp;gt;



&amp;lt;/results&amp;gt;"&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 26 Oct 2023 00:27:19 GMT</pubDate>
    <dc:creator>venugoski</dc:creator>
    <dc:date>2023-10-26T00:27:19Z</dc:date>
    <item>
      <title>How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/167263#M47613</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a question about using the REST API to run a search.  The doc seems to indicate that you need to follow 3 steps - create a search job, get the search status, and then get the search results.  Is there any way to just run the search and stream the results back? Seems like a lot of steps...&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:51:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/167263#M47613</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-04-28T12:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/167264#M47614</link>
      <description>&lt;P&gt;curl -ku username:password &lt;A href="https://SearchHead_host:8089/servicesNS/admin/search/search/jobs/export" target="_blank"&gt;https://SearchHead_host:8089/servicesNS/admin/search/search/jobs/export&lt;/A&gt; -d search=“search index%3D_internal | head 3” -d output_mode=csv/xml/json&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:41:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/167264#M47614</guid>
      <dc:creator>neelamssantosh</dc:creator>
      <dc:date>2020-09-28T19:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/167265#M47615</link>
      <description>&lt;P&gt;Thanks! Works great. &lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2015 21:13:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/167265#M47615</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-04-28T21:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/167266#M47616</link>
      <description>&lt;P&gt;Does this require to have saved search query? Or you are making it on demand?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 17:54:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/167266#M47616</guid>
      <dc:creator>neeldesai1992</dc:creator>
      <dc:date>2017-10-12T17:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/167267#M47617</link>
      <description>&lt;P&gt;the restful url call /serviceNS/admin/search/search/jobs/export is right?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 20:03:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/167267#M47617</guid>
      <dc:creator>neeldesai1992</dc:creator>
      <dc:date>2017-10-12T20:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/167268#M47618</link>
      <description>&lt;P&gt;I wasn't able to get the above example to work.  But, this one worked fine for me...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u 'username:password' &lt;A href="https://splunk.host.name.here:8089/services/search/jobs/export" target="test_blank"&gt;https://splunk.host.name.here:8089/services/search/jobs/export&lt;/A&gt;  -d search="search error | head 3" -d output_mode=xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The main differences are...&lt;BR /&gt;
1. I needed to quote my username and password (as they have special chars in them)&lt;BR /&gt;
2. I needed to replace "servicesNS" with just "services"&lt;BR /&gt;
3. Having "search" in the URL twice didn't work for me, I removed on of them.&lt;BR /&gt;
4. Only one output_mode can be specified at a time (I put "xml" in my example, but the other two work, just not all at once)&lt;BR /&gt;
5. I needed to remove the "smart quotes" and use normal quotes. That might just be my console being picky, though.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 23:48:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/167268#M47618</guid>
      <dc:creator>andrewlamonica</dc:creator>
      <dc:date>2018-09-17T23:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/511279#M143282</link>
      <description>&lt;P&gt;I needed to add&amp;nbsp;&lt;EM&gt;-d exec_mode=oneshot&lt;/EM&gt;&amp;nbsp; otherwise it wouldn't stream the results back.&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u 'username:password' https://splunk.host.name.here:8089/services/search/jobs/export  -d search="search index=_internal | head 3" -d output_mode=csv -d exec_mode=oneshot&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 Jul 2020 08:07:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/511279#M143282</guid>
      <dc:creator>kutzi</dc:creator>
      <dc:date>2020-07-28T08:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/553387#M157124</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/192903"&gt;@kutzi&lt;/a&gt;&amp;nbsp; thank you SO MUCH for posting this!!&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I have spent several hours trying to figure out how to do a basic synchronous search via curl/api (have tried 100s of curl command variations).&lt;/P&gt;&lt;P&gt;I have scripts working with the Async method (as that is clearly documented in splunk docs),&amp;nbsp; however im not sure why the direct, synchronous method seems to have little/no documentation.&amp;nbsp; (i realize the pros/cons of each and that synchronous search should rarely be used).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again thanks for taking the time to make this post,&amp;nbsp; it was super helpful.&lt;/P&gt;&lt;P&gt;Here is what is working for me:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -u admin:mypw -k https://splunk.me:8089/services/search/jobs/export -d search="search index=routers Web Down | head 3" -d output_mode=csv -d exec_mode=oneshot

### also this works:
curl -u admin:mypw -k https://splunk.me:8089/services/search/jobs/export -d output_mode=json -d search="search index=routers |head 10"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 17:57:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/553387#M157124</guid>
      <dc:creator>spunk311z</dc:creator>
      <dc:date>2021-05-27T17:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/597967#M208219</link>
      <description>&lt;P&gt;It's on demand&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 15:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/597967#M208219</guid>
      <dc:creator>nopslide</dc:creator>
      <dc:date>2022-05-16T15:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/634281#M220338</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/202346"&gt;@neelamssantosh&lt;/a&gt;&amp;nbsp; Apologies for asking as a comment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case of multiserach, does the rest api call syntax differ? I'm able to do normal search with the above syntax but it fails when put a multisearch query instead. Can you please take a look? thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 14:22:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/634281#M220338</guid>
      <dc:creator>arunslal</dc:creator>
      <dc:date>2023-03-13T14:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/652527#M225537</link>
      <description>&lt;P&gt;where should i run this command.&lt;/P&gt;&lt;P&gt;Also, please elaborate the command&lt;/P&gt;&lt;PRE&gt;curl -k -u 'username:password' https://splunk.host.name.here:8089/services/search/jobs/export  -d search="search index=_internal | head 3" -d output_mode=csv -d exec_mode=oneshot&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 11:50:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/652527#M225537</guid>
      <dc:creator>adminpulse</dc:creator>
      <dc:date>2023-07-31T11:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/661262#M228301</link>
      <description>&lt;P&gt;i am running the below query&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -k -u user:password https://10.236.142.0:8089/services/search/jobs/export -d search="search index=list-service source="eventhub://sams-jupiter-prod-scus-logs-premium-1.servicebus.windows.net/list-service;" "kubernetes.namespace_name"="list-service" | stats dc(kubernetes.pod_name) as pod_count"

&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
&amp;lt;results preview='0'&amp;gt;
&amp;lt;meta&amp;gt;
&amp;lt;fieldOrder /&amp;gt;
&amp;lt;/meta&amp;gt;
&amp;lt;/results&amp;gt;
zsh: command not found: kubernetes.namespace_name=list-service | stats dc(kubernetes.pod_name) as pod_count&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 00:18:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/661262#M228301</guid>
      <dc:creator>venugoski</dc:creator>
      <dc:date>2023-10-19T00:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/661268#M228303</link>
      <description>&lt;P&gt;Looks like spaces and quotes are being identified as shell. &amp;nbsp;Try escaping them like below:&lt;/P&gt;&lt;P&gt;curl -k -u user:password &lt;A href="https://10.236.142.0:8089/services/search/jobs/export" target="_blank" rel="noopener"&gt;https://10.236.142.0:8089/services/search/jobs/export&lt;/A&gt; -d search='search index=list-service source=\"eventhub://sams-jupiter-prod-scus-logs-premium-1.servicebus.windows.net/list-service;\" \"kubernetes.namespace_name\"=\"list-service\" | stats dc(kubernetes.pod_name) as pod_count'&lt;/P&gt;&lt;P&gt;I had a very long query that needed to be passed via rest api. I ran into such issues but url encoding the query was very helpful.&lt;/P&gt;&lt;P&gt;I used this website for that:&lt;/P&gt;&lt;P&gt;&lt;A href="https://meyerweb.com/eric/tools/dencoder/" target="_blank"&gt;https://meyerweb.com/eric/tools/dencoder/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 20:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/661268#M228303</guid>
      <dc:creator>arunslal</dc:creator>
      <dc:date>2023-10-18T20:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/666225#M228551</link>
      <description>&lt;P&gt;Need help in the splunk api curl query, i am seeing the below error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -k -u apiuser:password "https://10.236.141.0:8089/services/search/jobs/export" -d search="search index=address-validation earliest=-15m latest=now source=\"eventhub://sams-jupiter-prod-scus-logs-premium-1.servicebus.windows.net/list-service;\" | stats dc(kubernetes.pod_name) as pod_count"

&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
&amp;lt;messages&amp;gt;
&amp;lt;msg type="ERROR"&amp;gt;Unbalanced quotes.&amp;lt;/msg&amp;gt;
&amp;lt;/messages&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sometimes i dont see the result either:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -k -u user:password https://10.236.141.0:8089/services/search/jobs/export -d search="search index=address-validation earliest=-15m latest=now source=eventhub://sams-jupiter-prod-wus-logs-premium-1.servicebus.windows.net/address-validation; | stats dc(kubernetes.pod_name) as pod_count"



"&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;

&amp;lt;results preview='0'&amp;gt;

&amp;lt;meta&amp;gt;

&amp;lt;fieldOrder /&amp;gt;

&amp;lt;/meta&amp;gt;

&amp;lt;messages&amp;gt;

  &amp;lt;msg type="INFO"&amp;gt;Your timerange was substituted based on your search string&amp;lt;/msg&amp;gt;

&amp;lt;/messages&amp;gt;



&amp;lt;/results&amp;gt;"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 Oct 2023 00:27:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/666225#M228551</guid>
      <dc:creator>venugoski</dc:creator>
      <dc:date>2023-10-26T00:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/666227#M228553</link>
      <description>&lt;P&gt;Need help in the splunk api curl query, i am seeing the below error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;curl -k -u apiuser:password "&lt;A href="https://10.236.141.0:8089/services/search/jobs/export" target="_blank" rel="noopener nofollow noreferrer"&gt;https://10.236.141.0:8089/services/search/jobs/export&lt;/A&gt;" -d search="search index=address-validation earliest=-15m latest=now source=\"eventhub://sams-jupiter-prod-scus-logs-premium-1.servicebus.windows.net/list-service;\" | stats dc(kubernetes.pod_name) as pod_count"&lt;BR /&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;response&amp;gt;&lt;BR /&gt;&amp;lt;messages&amp;gt;&lt;BR /&gt;&amp;lt;msg type="ERROR"&amp;gt;Unbalanced quotes.&amp;lt;/msg&amp;gt;&lt;BR /&gt;&amp;lt;/messages&amp;gt;&lt;BR /&gt;&amp;lt;/response&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sometimes i dont see the result either:&lt;/P&gt;&lt;P&gt;curl -k -u user:password&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://10.236.141.0:8089/services/search/jobs/export" target="_blank" rel="noopener nofollow noreferrer"&gt;https://10.236.141.0:8089/services/search/jobs/export&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-d search="search index=address-validation earliest=-15m latest=now source=eventhub://sams-jupiter-prod-wus-logs-premium-1.servicebus.windows.net/address-validation; | stats dc(kubernetes.pod_name) as pod_count"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;results preview='0'&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;meta&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fieldOrder /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/meta&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;messages&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;msg type="INFO"&amp;gt;Your timerange was substituted based on your search string&amp;lt;/msg&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/messages&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;/results&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 18:30:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/666227#M228553</guid>
      <dc:creator>venugoski</dc:creator>
      <dc:date>2023-10-25T18:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the REST API to just run a search and stream the results back?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/675338#M231087</link>
      <description>&lt;P&gt;In your search, you need to escape your quotes, like this:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;search="search index=list-service source=\"eventhub://sams-jupiter-prod-scus-logs-premium-1.servicebus.windows.net/list-service;\" \"kubernetes.namespace_name\"=\"list-service\" | stats dc(kubernetes.pod_name) as pod_count"&lt;/P&gt;&lt;P&gt;or use single quotes around the search contents:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;search=‘search index=list-service source="eventhub://sams-jupiter-prod-scus-logs-premium-1.servicebus.windows.net/list-service;" "kubernetes.namespace_name”="list-service" | stats dc(kubernetes.pod_name) as pod_count’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 07:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-REST-API-to-just-run-a-search-and-stream-the/m-p/675338#M231087</guid>
      <dc:creator>jwalthour</dc:creator>
      <dc:date>2024-01-25T07:28:39Z</dc:date>
    </item>
  </channel>
</rss>

