<?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 Is there a delay in the Splunk API server 'seeing' events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-delay-in-the-Splunk-API-server-seeing-events/m-p/630388#M219004</link>
    <description>&lt;P&gt;Is there a delay in the Splunk API server 'seeing' events that are already indexed?&lt;BR /&gt;&lt;BR /&gt;I use the Splunk API to query logs for some testcases. I can submit a job to the API server (`POST &lt;A target="_blank" rel="noopener"&gt;https://&amp;lt;SERVER&amp;gt;:8089/services/search/jobs`&lt;/A&gt;). That works fine. But intermittently, the search job returns no results (GET &lt;A target="_blank" rel="noopener"&gt;https://&amp;lt;SERVER&amp;gt;:8089/services/search/jobs/&amp;lt;JOB_ID&amp;gt;/results&lt;/A&gt;&amp;nbsp;returns a 204/No Content HTTP header, and no HTTP body)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I checked if there was an indexing delay using the command below. Apparently there was not - the relevant logs were ingested and indexed well in time. It's just the Splunk API server that intermittently returns no results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;SPLUNK QUERY&amp;gt; | eval indextime=strftime(_indextime,"%Y-%m-%d %H:%M:%S")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Any pointers to how I can dig into this further? I'm just a dev, not a Splunk admin, so guidelines on what I do next are much appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 03:26:37 GMT</pubDate>
    <dc:creator>sonamchauhan</dc:creator>
    <dc:date>2023-02-10T03:26:37Z</dc:date>
    <item>
      <title>Is there a delay in the Splunk API server 'seeing' events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-delay-in-the-Splunk-API-server-seeing-events/m-p/630388#M219004</link>
      <description>&lt;P&gt;Is there a delay in the Splunk API server 'seeing' events that are already indexed?&lt;BR /&gt;&lt;BR /&gt;I use the Splunk API to query logs for some testcases. I can submit a job to the API server (`POST &lt;A target="_blank" rel="noopener"&gt;https://&amp;lt;SERVER&amp;gt;:8089/services/search/jobs`&lt;/A&gt;). That works fine. But intermittently, the search job returns no results (GET &lt;A target="_blank" rel="noopener"&gt;https://&amp;lt;SERVER&amp;gt;:8089/services/search/jobs/&amp;lt;JOB_ID&amp;gt;/results&lt;/A&gt;&amp;nbsp;returns a 204/No Content HTTP header, and no HTTP body)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I checked if there was an indexing delay using the command below. Apparently there was not - the relevant logs were ingested and indexed well in time. It's just the Splunk API server that intermittently returns no results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;SPLUNK QUERY&amp;gt; | eval indextime=strftime(_indextime,"%Y-%m-%d %H:%M:%S")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Any pointers to how I can dig into this further? I'm just a dev, not a Splunk admin, so guidelines on what I do next are much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 03:26:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-delay-in-the-Splunk-API-server-seeing-events/m-p/630388#M219004</guid>
      <dc:creator>sonamchauhan</dc:creator>
      <dc:date>2023-02-10T03:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a delay in the Splunk API server 'seeing' events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-delay-in-the-Splunk-API-server-seeing-events/m-p/630389#M219005</link>
      <description>&lt;P&gt;OK, I may have solved my own problem (caused by lack of knowledge of how Splunk API jobs work).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Basically, I had too short a delay between creating the job (POST job) and (GET results). I've increased it from 3 to 10 seconds and it seems to be behaving better&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 04:22:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-delay-in-the-Splunk-API-server-seeing-events/m-p/630389#M219005</guid>
      <dc:creator>sonamchauhan</dc:creator>
      <dc:date>2023-02-10T04:22:13Z</dc:date>
    </item>
  </channel>
</rss>

