<?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 Python SDK: Mismatch Results in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Python-SDK-Mismatch-Results/m-p/393316#M6643</link>
    <description>&lt;P&gt;I am using Splunk Python SDK to run series of splunk queries. Recently encountered an issue, results from SDK and manually running query on the Web yields different results. All I am trying to do is run a simple query to get the count for a particular timeframe(index=xxx | stats count). I see SDK query result count is short of 1 million than the one executed manually. I did verify the timeframe is same in both the case. Could someone shed some light?&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jun 2020 18:38:19 GMT</pubDate>
    <dc:creator>kavithaisplunk</dc:creator>
    <dc:date>2020-06-07T18:38:19Z</dc:date>
    <item>
      <title>Splunk Python SDK: Mismatch Results</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Python-SDK-Mismatch-Results/m-p/393316#M6643</link>
      <description>&lt;P&gt;I am using Splunk Python SDK to run series of splunk queries. Recently encountered an issue, results from SDK and manually running query on the Web yields different results. All I am trying to do is run a simple query to get the count for a particular timeframe(index=xxx | stats count). I see SDK query result count is short of 1 million than the one executed manually. I did verify the timeframe is same in both the case. Could someone shed some light?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 18:38:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Python-SDK-Mismatch-Results/m-p/393316#M6643</guid>
      <dc:creator>kavithaisplunk</dc:creator>
      <dc:date>2020-06-07T18:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Python SDK: Mismatch Results</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Python-SDK-Mismatch-Results/m-p/393317#M6644</link>
      <description>&lt;P&gt;Please post both the manual search and the code used with the sdk to create the search via API.&lt;/P&gt;

&lt;P&gt;Please be sure the user executing the search is the same.&lt;/P&gt;

&lt;P&gt;Please verify the job properties match between both jobs.  (Open splunk UI -&amp;gt; Activity -&amp;gt; Jobs -&amp;gt; find your job -&amp;gt; click job drop down -&amp;gt; inspect job)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 13:53:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Python-SDK-Mismatch-Results/m-p/393317#M6644</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-02-21T13:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Python SDK: Mismatch Results</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Python-SDK-Mismatch-Results/m-p/393318#M6645</link>
      <description>&lt;P&gt;I am exactly doing the same as below.. Running the same query manually I get 5 Million as Total count but running through the below code returns only 4 Million as Total count.&lt;/P&gt;

&lt;P&gt;import splunklib.results as results&lt;/P&gt;

&lt;P&gt;kwargs_oneshot = {"earliest_time": "2014-06-19T12:00:00.000-07:00",&lt;BR /&gt;
                  "latest_time": "2014-06-20T12:00:00.000-07:00"}&lt;BR /&gt;
searchquery_oneshot = "index=SearcherIndex NOT "&lt;EM&gt;health&lt;/EM&gt;" | stats count"&lt;/P&gt;

&lt;P&gt;oneshotsearch_results = service.jobs.oneshot(searchquery_oneshot, **kwargs_oneshot)&lt;/P&gt;

&lt;H1&gt;Get the results and display them using the ResultsReader&lt;/H1&gt;

&lt;P&gt;reader = results.ResultsReader(oneshotsearch_results)&lt;BR /&gt;
for item in reader:&lt;BR /&gt;
    print(item)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:19:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Python-SDK-Mismatch-Results/m-p/393318#M6645</guid>
      <dc:creator>kavithaisplunk</dc:creator>
      <dc:date>2020-09-29T23:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Python SDK: Mismatch Results</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Python-SDK-Mismatch-Results/m-p/393319#M6646</link>
      <description>&lt;P&gt;Try adding the following arguments in the kwargs dictionary:&lt;/P&gt;

&lt;P&gt;"count" : 0&lt;/P&gt;

&lt;P&gt;This will not limit your results if a limit exists somewhere.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 13:47:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Python-SDK-Mismatch-Results/m-p/393319#M6646</guid>
      <dc:creator>raduurjan</dc:creator>
      <dc:date>2019-12-11T13:47:43Z</dc:date>
    </item>
  </channel>
</rss>

