<?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 How to stream partial results from custom search command in Splunk? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-stream-partial-results-from-custom-search-command-in/m-p/575986#M10222</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to implement a use case where I have an API that keeps sending partial results (around 50-100) until all the results from the API are done.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have implemented a GeneratingCommand for it, and it returns correct results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I have to wait for quite some time, because Splunk returns results only when all the results from API are collected in Splunk.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The use case I want: I do not wish to wait for all results, but I want to have the partial results returned in Splunk as soon as they are returned from the API - so I do not have to wait.&lt;BR /&gt;&lt;BR /&gt;I have tried:&lt;/P&gt;
&lt;P&gt;1) adding limits.conf&lt;/P&gt;
&lt;P&gt;2) using chunked=True&lt;/P&gt;
&lt;P&gt;3) editing maxresultrows and maxresults&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4) using flush() results&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5) converting to streaming command and using above steps&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But nothing seems to work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please help, any help would be really appreciated.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 18:13:07 GMT</pubDate>
    <dc:creator>sourav_query_ai</dc:creator>
    <dc:date>2022-02-14T18:13:07Z</dc:date>
    <item>
      <title>How to stream partial results from custom search command in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-stream-partial-results-from-custom-search-command-in/m-p/575986#M10222</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to implement a use case where I have an API that keeps sending partial results (around 50-100) until all the results from the API are done.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have implemented a GeneratingCommand for it, and it returns correct results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I have to wait for quite some time, because Splunk returns results only when all the results from API are collected in Splunk.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The use case I want: I do not wish to wait for all results, but I want to have the partial results returned in Splunk as soon as they are returned from the API - so I do not have to wait.&lt;BR /&gt;&lt;BR /&gt;I have tried:&lt;/P&gt;
&lt;P&gt;1) adding limits.conf&lt;/P&gt;
&lt;P&gt;2) using chunked=True&lt;/P&gt;
&lt;P&gt;3) editing maxresultrows and maxresults&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4) using flush() results&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5) converting to streaming command and using above steps&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But nothing seems to work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please help, any help would be really appreciated.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 18:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-stream-partial-results-from-custom-search-command-in/m-p/575986#M10222</guid>
      <dc:creator>sourav_query_ai</dc:creator>
      <dc:date>2022-02-14T18:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to stream Partial Results from Custom Search Command in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-stream-partial-results-from-custom-search-command-in/m-p/584988#M10223</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I've been in exactly the same situation as you and I've ended with splitting my logic into multiple steps. Now I am calling splunk in a loop to get results one by one (there is a bit complicated logic even hidden internally as a custom command not to move huge amount of the data back and forth). Every time I got the data in a loop I propagate it to UI to show it to user and I continue in processing of next record. I was not able to find out any other way how to implement "streaming" so UI user does not have to wait for long time until whole data set is ready.&amp;nbsp; Hope this will help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 13:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-stream-partial-results-from-custom-search-command-in/m-p/584988#M10223</guid>
      <dc:creator>jakubzak</dc:creator>
      <dc:date>2022-02-14T13:53:39Z</dc:date>
    </item>
  </channel>
</rss>

