<?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 Why does my SPLUNK RETS API return 0 eventCount? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-SPLUNK-RETS-API-return-0-eventCount/m-p/612223#M212860</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been using SPLUNK search REST API for a while now and just today i've run into the following issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When calling the&amp;nbsp;&lt;SPAN&gt;services/search/jobs/{search_id} API i get back the proper results with dispatchState: DONE and eventCount: 0 but I know for sure that there are results because I also tried running the same query from the Splunk UI and I do get results back.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Has anything changed since yesterday (since it was working), I don't think its user related because I tried with several users and got the same results.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 05:49:09 GMT</pubDate>
    <dc:creator>PepposChris</dc:creator>
    <dc:date>2022-09-08T05:49:09Z</dc:date>
    <item>
      <title>Why does my SPLUNK RETS API return 0 eventCount?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-SPLUNK-RETS-API-return-0-eventCount/m-p/612223#M212860</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been using SPLUNK search REST API for a while now and just today i've run into the following issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When calling the&amp;nbsp;&lt;SPAN&gt;services/search/jobs/{search_id} API i get back the proper results with dispatchState: DONE and eventCount: 0 but I know for sure that there are results because I also tried running the same query from the Splunk UI and I do get results back.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Has anything changed since yesterday (since it was working), I don't think its user related because I tried with several users and got the same results.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 05:49:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-SPLUNK-RETS-API-return-0-eventCount/m-p/612223#M212860</guid>
      <dc:creator>PepposChris</dc:creator>
      <dc:date>2022-09-08T05:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: SPLUNK RETS API returns 0 eventCount</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-SPLUNK-RETS-API-return-0-eventCount/m-p/612249#M212872</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249238"&gt;@PepposChris&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share your sample code ?&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 11:20:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-SPLUNK-RETS-API-return-0-eventCount/m-p/612249#M212872</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-09-07T11:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: SPLUNK RETS API returns 0 eventCount</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-SPLUNK-RETS-API-return-0-eventCount/m-p/612253#M212874</link>
      <description>&lt;P&gt;I don't thinl there's need to see any more since I haven't changed anything. Whatever I has yesterday i have today as well.&lt;/P&gt;&lt;P&gt;yml configuration -&amp;gt;&lt;/P&gt;&lt;P&gt;splunk:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;url: &lt;A href="https://splunk-api-b.{host}.com:8089" target="_blank" rel="noopener"&gt;https://splunk-api-b.{host}.com:8089 &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;sid-endpoint: /services/search/jobs&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;splunk-response-endpoint: /services/search/jobs/{sid}&lt;/P&gt;&lt;LI-CODE lang="java"&gt;@RequestMapping(value = "${feign.splunk.sid-endpoint}", produces = { "*/*" }, consumes = { "application/x-www-form-urlencoded" }, method = RequestMethod.POST) ResponseEntity splunkGetSid(@RequestBody MultiValueMap&amp;lt;String, String&amp;gt; getSplunkSidRequest, @RequestParam String output_mode, @RequestHeader(value="Authorization", required=true) String authorization);

@RequestMapping(value = "${feign.splunk.splunk-response-endpoint}", produces = { "application/json" }, consumes = { "application/json" }, method = RequestMethod.GET) ResponseEntity splunkGetResponse(@RequestParam(value = "output_mode") String output_mode, @PathVariable String sid, @RequestHeader(value="Authorization", required=true) String authorization);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 11:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-SPLUNK-RETS-API-return-0-eventCount/m-p/612253#M212874</guid>
      <dc:creator>PepposChris</dc:creator>
      <dc:date>2022-09-07T11:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: SPLUNK RETS API returns 0 eventCount</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-SPLUNK-RETS-API-return-0-eventCount/m-p/612347#M212903</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249238"&gt;@PepposChris&lt;/a&gt;&amp;nbsp;, I think&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;is asking about your search code submitted via API, not API job query. &amp;nbsp;What have you submitted? &amp;nbsp;And why do you expect eventCount to be greater than 0?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 04:14:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-SPLUNK-RETS-API-return-0-eventCount/m-p/612347#M212903</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-09-08T04:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: SPLUNK RETS API returns 0 eventCount</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-SPLUNK-RETS-API-return-0-eventCount/m-p/612353#M212904</link>
      <description>&lt;P&gt;Oh i'm sorry and thanks for the clarification.&lt;/P&gt;&lt;P&gt;This is the query im passing -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;search index=**** sourcetype=****_*** cf_org_name=*******_******_*** NOT cf_app_name = ******* (cf_space_name=PCFQAT01 OR cf_space_name=PCFQAT02 OR cf_space_name=PCFQAT03) java.lang.NullPointerException earliest=-24h&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been using this exact same query for almost 2 weeks now and I haven't had any issues. But just yesterday i started getting eventCount=0. Because this seemed weird I tried 3-4 other queries where all of them would return eventCount=0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not expecting eventCount=0 because I am also using the Splunk&amp;gt;Enterprise UI web app, and when I tried searching with the same queries I was getting results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also my disk usage is -&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"diskUsage"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;671744&lt;BR /&gt;&lt;BR /&gt;Could this have anything to do with my issue?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Sep 2022 06:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-SPLUNK-RETS-API-return-0-eventCount/m-p/612353#M212904</guid>
      <dc:creator>PepposChris</dc:creator>
      <dc:date>2022-09-08T06:30:39Z</dc:date>
    </item>
  </channel>
</rss>

