<?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 come our API results are only returning the first 100 results for metadata? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-come-our-API-results-are-only-returning-the-first-100/m-p/414054#M73236</link>
    <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u user:passwd -k &lt;A href="https://XXXX:8089/services/search/jobs/md_1551723351.24391/results" target="test_blank"&gt;https://XXXX:8089/services/search/jobs/md_1551723351.24391/results&lt;/A&gt; --get  -d count=0 -d output_mode=json 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Reference: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.2.6/RESTREF/RESTsearchExamples#search.2Fjobs.2F.7Bsearch_id.7D.2Fresults_GET"&gt;https://docs.splunk.com/Documentation/Splunk/6.2.6/RESTREF/RESTsearchExamples#search.2Fjobs.2F.7Bsearch_id.7D.2Fresults_GET&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2019 18:40:17 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-03-04T18:40:17Z</dc:date>
    <item>
      <title>How come our API results are only returning the first 100 results for metadata?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-our-API-results-are-only-returning-the-first-100/m-p/414053#M73235</link>
      <description>&lt;P&gt;I'm trying to get the number of hosts reporting to Splunk via API, but the a normal curl -k is only able to return 100 results.&lt;/P&gt;
&lt;P&gt;I tried adding the "count=0" parameter, but it just gives me 100 and cannot go further.&lt;/P&gt;
&lt;P&gt;My search strings below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;curl -u user:passwd -k &lt;A href="https://XXXX:8089/services/search/jobs" target="test_blank"&gt;https://XXXX:8089/services/search/jobs&lt;/A&gt; -d search="metadata%20type%3Dhosts"
url -u user:passwd -k &lt;A href="https://XXXX:8089/services/search/jobs/md_1551723351.24391/results?output_mode=csv&amp;amp;count=0" target="test_blank"&gt;https://XXXX:8089/services/search/jobs/md_1551723351.24391/results?output_mode=csv&amp;amp;count=0&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any help is appreciated&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 01:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-our-API-results-are-only-returning-the-first-100/m-p/414053#M73235</guid>
      <dc:creator>aksharp</dc:creator>
      <dc:date>2020-06-07T01:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How come our API results are only returning the first 100 results for metadata?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-our-API-results-are-only-returning-the-first-100/m-p/414054#M73236</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u user:passwd -k &lt;A href="https://XXXX:8089/services/search/jobs/md_1551723351.24391/results" target="test_blank"&gt;https://XXXX:8089/services/search/jobs/md_1551723351.24391/results&lt;/A&gt; --get  -d count=0 -d output_mode=json 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Reference: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.2.6/RESTREF/RESTsearchExamples#search.2Fjobs.2F.7Bsearch_id.7D.2Fresults_GET"&gt;https://docs.splunk.com/Documentation/Splunk/6.2.6/RESTREF/RESTsearchExamples#search.2Fjobs.2F.7Bsearch_id.7D.2Fresults_GET&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 18:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-our-API-results-are-only-returning-the-first-100/m-p/414054#M73236</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-03-04T18:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: How come our API results are only returning the first 100 results for metadata?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-our-API-results-are-only-returning-the-first-100/m-p/414055#M73237</link>
      <description>&lt;P&gt;This is how I got mine to work, not sure the difference between mine and yours, but this worked for me&lt;BR /&gt;
curl -k -u 'username:password' "&lt;A href="https://api.company.com:443/services/search/jobs/$sidkey/results?count=0&amp;amp;output_mode=csv"&gt;https://api.company.com:443/services/search/jobs/$sidkey/results?count=0&amp;amp;output_mode=csv&lt;/A&gt;"&lt;/P&gt;

&lt;P&gt;my sidkey is just the sid within a variable , change it to a valid sid &lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 16:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-our-API-results-are-only-returning-the-first-100/m-p/414055#M73237</guid>
      <dc:creator>vandelin</dc:creator>
      <dc:date>2020-05-26T16:37:30Z</dc:date>
    </item>
  </channel>
</rss>

