<?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 searches using certain fieldnames so slow? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-searches-using-certain-fieldnames-so-slow/m-p/391097#M113845</link>
    <description>&lt;P&gt;In most cases, I don't notice a huge difference when I specify a fieldname or do a free text search, but for some fields it is literally 260 times slower.&lt;/P&gt;

&lt;P&gt;Are searches using fieldnames supposed to be slower than free text?&lt;BR /&gt;
What is it about these particular fields that make it unbearably slow?&lt;/P&gt;

&lt;P&gt;For instance:&lt;BR /&gt;
index=main myusername&lt;BR /&gt;
This search has completed and has returned 1,774 results by scanning 1,774 events in 2.65 seconds&lt;/P&gt;

&lt;P&gt;index=main user=myusername&lt;BR /&gt;
This search has completed and has returned 1,774 results by scanning 40,885,115 events in 689.411 seconds&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2019 20:37:40 GMT</pubDate>
    <dc:creator>john_byun</dc:creator>
    <dc:date>2019-05-24T20:37:40Z</dc:date>
    <item>
      <title>Why are searches using certain fieldnames so slow?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-searches-using-certain-fieldnames-so-slow/m-p/391097#M113845</link>
      <description>&lt;P&gt;In most cases, I don't notice a huge difference when I specify a fieldname or do a free text search, but for some fields it is literally 260 times slower.&lt;/P&gt;

&lt;P&gt;Are searches using fieldnames supposed to be slower than free text?&lt;BR /&gt;
What is it about these particular fields that make it unbearably slow?&lt;/P&gt;

&lt;P&gt;For instance:&lt;BR /&gt;
index=main myusername&lt;BR /&gt;
This search has completed and has returned 1,774 results by scanning 1,774 events in 2.65 seconds&lt;/P&gt;

&lt;P&gt;index=main user=myusername&lt;BR /&gt;
This search has completed and has returned 1,774 results by scanning 40,885,115 events in 689.411 seconds&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 20:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-searches-using-certain-fieldnames-so-slow/m-p/391097#M113845</guid>
      <dc:creator>john_byun</dc:creator>
      <dc:date>2019-05-24T20:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why are searches using certain fieldnames so slow?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-searches-using-certain-fieldnames-so-slow/m-p/391098#M113846</link>
      <description>&lt;P&gt;Good question&lt;BR /&gt;
In Search &lt;CODE&gt;index=main myusername&lt;/CODE&gt;, You are searching for string of "myusername" and it is blazingly fast in Splunk. &lt;/P&gt;

&lt;P&gt;But in search &lt;CODE&gt;index=main user=myusername&lt;/CODE&gt; . you are searching for a key-value field. Splunk doesn't now if that's raw data, or evaluated field. So it has use the TA's , props/transforms/eventypes  or enriched fields kinda.&lt;/P&gt;

&lt;P&gt;Some good tips which I do are&lt;BR /&gt;
=&amp;gt; If you are sure, that the keyword is present in raw data then do &lt;CODE&gt;index=main myusername user=myusername&lt;/CODE&gt;&lt;BR /&gt;
=&amp;gt; Use TERM if you know the key-value pair is present in the raw data&lt;BR /&gt;
=&amp;gt; if its an index field, you could use double colon (::) for &lt;A href="https://answers.splunk.com/answers/356832/why-does-my-search-fail-when-searching-indexed-ext.html"&gt;key-value pair&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 20:56:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-searches-using-certain-fieldnames-so-slow/m-p/391098#M113846</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-24T20:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why are searches using certain fieldnames so slow?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-searches-using-certain-fieldnames-so-slow/m-p/391099#M113847</link>
      <description>&lt;P&gt;Let me ask a slightly different question.  In general, is it going to be faster using a string search compared to a field search?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 22:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-searches-using-certain-fieldnames-so-slow/m-p/391099#M113847</guid>
      <dc:creator>john_byun</dc:creator>
      <dc:date>2019-05-29T22:13:24Z</dc:date>
    </item>
  </channel>
</rss>

