<?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: REST API JSON output only with &amp;quot;result&amp;quot; field (without offset, etc.) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-JSON-output-only-with-quot-result-quot-field-without/m-p/482320#M82663</link>
    <description>&lt;P&gt;hi @Sukisen1981!&lt;BR /&gt;
thanks for your comment!&lt;BR /&gt;
i read the page you provided, and for some reason i cannot get the results -- not sure what's wrong&lt;/P&gt;

&lt;P&gt;(sorry for the huge delay)&lt;/P&gt;

&lt;P&gt;best wishes,&lt;BR /&gt;
rashid&lt;/P&gt;</description>
    <pubDate>Sun, 26 Apr 2020 12:28:52 GMT</pubDate>
    <dc:creator>highsplunker</dc:creator>
    <dc:date>2020-04-26T12:28:52Z</dc:date>
    <item>
      <title>REST API JSON output only with "result" field (without offset, etc.)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-JSON-output-only-with-quot-result-quot-field-without/m-p/482318#M82661</link>
      <description>&lt;P&gt;Hey guys, could you please help!&lt;/P&gt;

&lt;P&gt;I use&lt;BR /&gt;
curl -k -u 'myUser:myPwd' &lt;A href="https://localhost:8089/services/search/jobs/export" target="_blank"&gt;https://localhost:8089/services/search/jobs/export&lt;/A&gt; -d search="search index=myIndex | head 2 | table _time, CLIENT_ID, EVENT_TYPE_NAME " -d output_mode=json&lt;/P&gt;

&lt;P&gt;After that i get &lt;BR /&gt;
{"preview":false,"offset":0,"result":{"_time":"2019-09-16 08:29:35.000 GMT","EVENT_TYPE_NAME":"Log in"}}&lt;BR /&gt;
{"preview":false,"offset":1,"lastrow":true,"result":{"_time":"2019-09-16 08:29:35.000 GMT","CLIENT_ID":"1207088","EVENT_TYPE_NAME":"Login"}}&lt;/P&gt;

&lt;P&gt;I want &lt;STRONG&gt;only "result"&lt;/STRONG&gt; field as output. Is that possible?&lt;/P&gt;

&lt;P&gt;Maybe another endpoint?.. Can't find.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-JSON-output-only-with-quot-result-quot-field-without/m-p/482318#M82661</guid>
      <dc:creator>highsplunker</dc:creator>
      <dc:date>2020-09-30T02:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: REST API JSON output only with "result" field (without offset, etc.)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-JSON-output-only-with-quot-result-quot-field-without/m-p/482319#M82662</link>
      <description>&lt;P&gt;what happens if you add this before -d /results/ &lt;BR /&gt;
     --get -d output_mode=json -d count=5&lt;BR /&gt;
Have you tried some permutations of this -  &lt;CODE&gt;curl -u admin:changeme \&lt;BR /&gt;
     -k https://localhost:8089/servicesNS/admin/search/jobs/1423855196.339/results/ \&lt;BR /&gt;
     --get -d output_mode=json -d count=5&lt;/CODE&gt;&lt;BR /&gt;
ref here - &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Search/ExportdatausingRESTAPI" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Search/ExportdatausingRESTAPI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-JSON-output-only-with-quot-result-quot-field-without/m-p/482319#M82662</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2020-09-30T02:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: REST API JSON output only with "result" field (without offset, etc.)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-JSON-output-only-with-quot-result-quot-field-without/m-p/482320#M82663</link>
      <description>&lt;P&gt;hi @Sukisen1981!&lt;BR /&gt;
thanks for your comment!&lt;BR /&gt;
i read the page you provided, and for some reason i cannot get the results -- not sure what's wrong&lt;/P&gt;

&lt;P&gt;(sorry for the huge delay)&lt;/P&gt;

&lt;P&gt;best wishes,&lt;BR /&gt;
rashid&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 12:28:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-JSON-output-only-with-quot-result-quot-field-without/m-p/482320#M82663</guid>
      <dc:creator>highsplunker</dc:creator>
      <dc:date>2020-04-26T12:28:52Z</dc:date>
    </item>
  </channel>
</rss>

