<?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 Splunk Add-on Builder REST data input pagination in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-Builder-REST-data-input-pagination/m-p/555974#M92059</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've recently started working with the Splunk Add-on Builder to quickly query and index data from a REST API of one of my systems.&lt;/P&gt;&lt;P&gt;The response looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
"count":296,
"next":"http://mysite.com/api/?page=2&amp;amp;page_size=200",
"previous":null,
"results": [...]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to paginate through the results.&lt;/P&gt;&lt;P&gt;Note: I am aware of checkpoints (I'm using this as well), but am looking for something else.&lt;/P&gt;&lt;P&gt;The behavior I'm looking for is a paginated query, that will continue until "next=null", and then sleep for the specified interval of the data input.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? (I would really prefer not implementing a whole new REST client, when there is already a really good implementation here)&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 13:10:04 GMT</pubDate>
    <dc:creator>yotamcp</dc:creator>
    <dc:date>2021-06-16T13:10:04Z</dc:date>
    <item>
      <title>Splunk Add-on Builder REST data input pagination</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-Builder-REST-data-input-pagination/m-p/555974#M92059</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've recently started working with the Splunk Add-on Builder to quickly query and index data from a REST API of one of my systems.&lt;/P&gt;&lt;P&gt;The response looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
"count":296,
"next":"http://mysite.com/api/?page=2&amp;amp;page_size=200",
"previous":null,
"results": [...]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to paginate through the results.&lt;/P&gt;&lt;P&gt;Note: I am aware of checkpoints (I'm using this as well), but am looking for something else.&lt;/P&gt;&lt;P&gt;The behavior I'm looking for is a paginated query, that will continue until "next=null", and then sleep for the specified interval of the data input.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? (I would really prefer not implementing a whole new REST client, when there is already a really good implementation here)&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 13:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-Builder-REST-data-input-pagination/m-p/555974#M92059</guid>
      <dc:creator>yotamcp</dc:creator>
      <dc:date>2021-06-16T13:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on Builder REST data input pagination</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-Builder-REST-data-input-pagination/m-p/557985#M92331</link>
      <description>&lt;P&gt;Working through the same issue here. I'm wondering if I have to script it myself so it loops through requests until there are no more results. Seems like something that would be common, so I am still thinking there must be configurable way....&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 06:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-Builder-REST-data-input-pagination/m-p/557985#M92331</guid>
      <dc:creator>kfennell</dc:creator>
      <dc:date>2021-07-01T06:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on Builder REST data input pagination</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-Builder-REST-data-input-pagination/m-p/580170#M102371</link>
      <description>&lt;P&gt;The REST data input is quite simple. You'll have to code in order to get it to pull more pages.&lt;/P&gt;&lt;P&gt;This would be a good feature request. I don't see it being difficult to implement.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 20:26:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-Builder-REST-data-input-pagination/m-p/580170#M102371</guid>
      <dc:creator>Tyler</dc:creator>
      <dc:date>2022-01-06T20:26:04Z</dc:date>
    </item>
  </channel>
</rss>

