<?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: Splunk query discrepancy in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-query-discrepancy/m-p/157340#M14445</link>
    <description>&lt;P&gt;I have the same problem when I use automatic lookups.&lt;BR /&gt;
If that is not the case it may be that you are searching in Fast or Smart Mode and the user_id field is not available in the first search run.&lt;/P&gt;

&lt;P&gt;Your second query is differently handled by splunk because first a search is done on all data to find data with sourcetype "apache.web.access" and than a new search on the result data is startet, while the first query only runs one search against the data (which is more performant).&lt;/P&gt;

&lt;P&gt;So try to change your search mode I hope it helps. (It did not in my case with the automatic lookup).&lt;/P&gt;</description>
    <pubDate>Thu, 09 Oct 2014 16:24:28 GMT</pubDate>
    <dc:creator>peter_krammer</dc:creator>
    <dc:date>2014-10-09T16:24:28Z</dc:date>
    <item>
      <title>Splunk query discrepancy</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-query-discrepancy/m-p/157339#M14444</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
    I am sending apache web access log to splunk with one of the fields called user_id and I can see the field on the left panel.&lt;BR /&gt;
    Can anyone tell me the difference between the 2 queries below?  I think the search result should be the same for both queries. However, the first query returns 0 result but the second query returned results with the field user_id = myuserid &lt;/P&gt;

&lt;P&gt;Any idea?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="apache.web.access" user_id="myuserid" | table _time, user_id, _raw

sourcetype="apache.web.access" | search user_id="myuserid" | table _time, user_id, _raw
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-query-discrepancy/m-p/157339#M14444</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2020-09-28T17:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query discrepancy</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-query-discrepancy/m-p/157340#M14445</link>
      <description>&lt;P&gt;I have the same problem when I use automatic lookups.&lt;BR /&gt;
If that is not the case it may be that you are searching in Fast or Smart Mode and the user_id field is not available in the first search run.&lt;/P&gt;

&lt;P&gt;Your second query is differently handled by splunk because first a search is done on all data to find data with sourcetype "apache.web.access" and than a new search on the result data is startet, while the first query only runs one search against the data (which is more performant).&lt;/P&gt;

&lt;P&gt;So try to change your search mode I hope it helps. (It did not in my case with the automatic lookup).&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2014 16:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-query-discrepancy/m-p/157340#M14445</guid>
      <dc:creator>peter_krammer</dc:creator>
      <dc:date>2014-10-09T16:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query discrepancy</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-query-discrepancy/m-p/157341#M14446</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;

&lt;P&gt;I just tried all 3 modes, fast, smart, verbose, but the result is still the same. &lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2014 17:01:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-query-discrepancy/m-p/157341#M14446</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2014-10-09T17:01:27Z</dc:date>
    </item>
  </channel>
</rss>

