<?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 oneshot returns empty results sometimes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-oneshot-returns-empty-results-sometimes/m-p/624269#M217046</link>
    <description>&lt;P&gt;I am using Python SDK to run Splunk queries at 10 minute interval to collect data for my application. I have nearly 300 queries that I need to run every 10 mins. I have 4 FID to run these 300 queries, so roughly 75 queries for one FID. And I am using ProcessPoolExecutor in Python to only execute 20 at a time so there is no concurrent limit reached issue.&lt;/P&gt;&lt;P&gt;What I am observing is I get the results sometimes and sometimes I get no data from Splunk but the connection to Splunk was successful and the query gets completed with no errors. Am I reaching any limits here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;splunkResultsReaderParameters={
"earliest_time": "-10m",
"latest_time": "now"
}
splunkReader="ResultsReader"

oneshotsearch_results = splunkService.jobs.oneshot(query, **splunkParams)
reader = results.ResultsReader(oneshotsearch_results)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 17:46:44 GMT</pubDate>
    <dc:creator>ShaneReddy</dc:creator>
    <dc:date>2022-12-14T17:46:44Z</dc:date>
    <item>
      <title>Splunk oneshot returns empty results sometimes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-oneshot-returns-empty-results-sometimes/m-p/624269#M217046</link>
      <description>&lt;P&gt;I am using Python SDK to run Splunk queries at 10 minute interval to collect data for my application. I have nearly 300 queries that I need to run every 10 mins. I have 4 FID to run these 300 queries, so roughly 75 queries for one FID. And I am using ProcessPoolExecutor in Python to only execute 20 at a time so there is no concurrent limit reached issue.&lt;/P&gt;&lt;P&gt;What I am observing is I get the results sometimes and sometimes I get no data from Splunk but the connection to Splunk was successful and the query gets completed with no errors. Am I reaching any limits here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;splunkResultsReaderParameters={
"earliest_time": "-10m",
"latest_time": "now"
}
splunkReader="ResultsReader"

oneshotsearch_results = splunkService.jobs.oneshot(query, **splunkParams)
reader = results.ResultsReader(oneshotsearch_results)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 17:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-oneshot-returns-empty-results-sometimes/m-p/624269#M217046</guid>
      <dc:creator>ShaneReddy</dc:creator>
      <dc:date>2022-12-14T17:46:44Z</dc:date>
    </item>
  </channel>
</rss>

