<?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: Why are REST API searches returning intermittent results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-REST-API-searches-returning-intermittent-results/m-p/241119#M71708</link>
    <description>&lt;P&gt;Have you tried adding the following  to your query?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk_server=local
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For instance, who am I?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/authentication/current-context splunk_server=local | table username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I remember getting weird results when running REST queries on the DMC server and forcing the queries to run against the local server fixed the problem&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2015 14:36:21 GMT</pubDate>
    <dc:creator>javiergn</dc:creator>
    <dc:date>2015-12-02T14:36:21Z</dc:date>
    <item>
      <title>Why are REST API searches returning intermittent results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-REST-API-searches-returning-intermittent-results/m-p/241115#M71704</link>
      <description>&lt;P&gt;I'm having an weird situation where REST queries sometimes pull results and sometimes don't.  We've even tried limiting the search to just return 10 results with &lt;CODE&gt;| head 10&lt;/CODE&gt; after the gather stage.  I see the traffic in PCAP for all request attempts, but some requests just fail to return any results.  For those that fail, I don't see any log entries for the search.  For all that returned results, I see log entries for the search activity.  The same search can fail and then succeed or vice versa.&lt;/P&gt;

&lt;P&gt;What should I start investigating next?  Has anyone seen an issue like this before?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 20:44:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-REST-API-searches-returning-intermittent-results/m-p/241115#M71704</guid>
      <dc:creator>ltrand</dc:creator>
      <dc:date>2015-11-19T20:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why are REST API searches returning intermittent results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-REST-API-searches-returning-intermittent-results/m-p/241116#M71705</link>
      <description>&lt;P&gt;What does the _internal index say about those SIDS ?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 12:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-REST-API-searches-returning-intermittent-results/m-p/241116#M71705</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-12-01T12:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why are REST API searches returning intermittent results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-REST-API-searches-returning-intermittent-results/m-p/241117#M71706</link>
      <description>&lt;P&gt;That's what's killer, the ones that fail have no entries for the user in _internal at all.  It's like it didn't even register the request as valid.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 16:40:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-REST-API-searches-returning-intermittent-results/m-p/241117#M71706</guid>
      <dc:creator>ltrand</dc:creator>
      <dc:date>2015-12-01T16:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why are REST API searches returning intermittent results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-REST-API-searches-returning-intermittent-results/m-p/241118#M71707</link>
      <description>&lt;P&gt;Whats in the HTTP response?  EG: Do you get any response at all from Splunk or are your requests just timing out. &lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 16:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-REST-API-searches-returning-intermittent-results/m-p/241118#M71707</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2015-12-01T16:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why are REST API searches returning intermittent results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-REST-API-searches-returning-intermittent-results/m-p/241119#M71708</link>
      <description>&lt;P&gt;Have you tried adding the following  to your query?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk_server=local
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For instance, who am I?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/authentication/current-context splunk_server=local | table username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I remember getting weird results when running REST queries on the DMC server and forcing the queries to run against the local server fixed the problem&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 14:36:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-REST-API-searches-returning-intermittent-results/m-p/241119#M71708</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2015-12-02T14:36:21Z</dc:date>
    </item>
  </channel>
</rss>

