<?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 Why are some undefined field searches faster than searches where you define the field and value you are looking for? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-undefined-field-searches-faster-than-searches-where/m-p/368733#M165895</link>
    <description>&lt;P&gt;So I noticed that when I run two searches like the following and I am looking for a value, in this case some computer name.. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = indexA  sourcetype=sourcetypeA  "ComputerName"

index = indexA  sourcetype=sourcetypeA  dvc = ComputerName 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;sometimes the search with the undefined field is faster...&lt;/P&gt;

&lt;P&gt;I would think that search time would be faster if you provide more specific details that could be seen in the bloom filters which would speed up the search in general.   I am thinking that if the field dvc is not define the search defaults to looking at the raw data.&lt;/P&gt;

&lt;P&gt;Can anyone explain what is happening here...&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2017 14:24:00 GMT</pubDate>
    <dc:creator>packet_hunter</dc:creator>
    <dc:date>2017-09-28T14:24:00Z</dc:date>
    <item>
      <title>Why are some undefined field searches faster than searches where you define the field and value you are looking for?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-undefined-field-searches-faster-than-searches-where/m-p/368733#M165895</link>
      <description>&lt;P&gt;So I noticed that when I run two searches like the following and I am looking for a value, in this case some computer name.. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = indexA  sourcetype=sourcetypeA  "ComputerName"

index = indexA  sourcetype=sourcetypeA  dvc = ComputerName 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;sometimes the search with the undefined field is faster...&lt;/P&gt;

&lt;P&gt;I would think that search time would be faster if you provide more specific details that could be seen in the bloom filters which would speed up the search in general.   I am thinking that if the field dvc is not define the search defaults to looking at the raw data.&lt;/P&gt;

&lt;P&gt;Can anyone explain what is happening here...&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 14:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-some-undefined-field-searches-faster-than-searches-where/m-p/368733#M165895</guid>
      <dc:creator>packet_hunter</dc:creator>
      <dc:date>2017-09-28T14:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why are some undefined field searches faster than searches where you define the field and value you are looking for?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-some-undefined-field-searches-faster-than-searches-where/m-p/368734#M165896</link>
      <description>&lt;P&gt;Try this and see if it beats them both...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = indexA  sourcetype=sourcetypeA  "ComputerName" dvc=ComputerName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It is not immediately obvious to me that a bloom filter would always be used if a field name and value is provided.  If the above is faster than both the others, then each is having a limiting/accelerating factor.&lt;/P&gt;

&lt;P&gt;If the field &lt;CODE&gt;dvc&lt;/CODE&gt; is not an indexed field, then the field must be extracted at search time before comparison...&lt;/P&gt;

&lt;P&gt;Another data question that I'd have if trying to investigate this, is whether your ComputerNames are all word characters, or whether they may be perceived by splunk as multiple tokens - "my_computer_name_is_five_words_long_and_lies_to_people" - which could affect performance.   &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-some-undefined-field-searches-faster-than-searches-where/m-p/368734#M165896</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2020-09-29T15:58:56Z</dc:date>
    </item>
  </channel>
</rss>

