<?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 command.search.kv performance in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/command-search-kv-performance/m-p/39212#M8939</link>
    <description>&lt;P&gt;We have a search that is spending most of its time in command.search.kv.  If we give it a search which doesn't need any fields, like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex sourcetype=mytype | stats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it takes 1.8 seconds to count the 104,000 events (that alone seems high).&lt;/P&gt;

&lt;P&gt;If instead we give it any search which would cause it to extract fields, e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex sourcetype=mytype myfield=val1 | stats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then the time jumps up to 9 seconds, almost all of which is in command.search.kv.&lt;/P&gt;

&lt;P&gt;We have no custom field extractions, field transformations, field aliases or tags.  Each data item does have 101 fields, but the search in question really only needs 8 of them.  Is there any way to speed things up?  For example, is there a way to tell Splunk to turn off all of the automatic field extractions and have it use only some user defined ones?  Alternatively, is there any way to debug what's happening during command.search.kv?&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2013 01:41:21 GMT</pubDate>
    <dc:creator>rettops</dc:creator>
    <dc:date>2013-05-20T01:41:21Z</dc:date>
    <item>
      <title>command.search.kv performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/command-search-kv-performance/m-p/39212#M8939</link>
      <description>&lt;P&gt;We have a search that is spending most of its time in command.search.kv.  If we give it a search which doesn't need any fields, like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex sourcetype=mytype | stats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it takes 1.8 seconds to count the 104,000 events (that alone seems high).&lt;/P&gt;

&lt;P&gt;If instead we give it any search which would cause it to extract fields, e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex sourcetype=mytype myfield=val1 | stats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then the time jumps up to 9 seconds, almost all of which is in command.search.kv.&lt;/P&gt;

&lt;P&gt;We have no custom field extractions, field transformations, field aliases or tags.  Each data item does have 101 fields, but the search in question really only needs 8 of them.  Is there any way to speed things up?  For example, is there a way to tell Splunk to turn off all of the automatic field extractions and have it use only some user defined ones?  Alternatively, is there any way to debug what's happening during command.search.kv?&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2013 01:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/command-search-kv-performance/m-p/39212#M8939</guid>
      <dc:creator>rettops</dc:creator>
      <dc:date>2013-05-20T01:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: command.search.kv performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/command-search-kv-performance/m-p/39213#M8940</link>
      <description>&lt;P&gt;I forgot to mention - the 9 seconds is in 'fast' mode search.  In verbose mode it jumps to 18 seconds.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2013 02:37:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/command-search-kv-performance/m-p/39213#M8940</guid>
      <dc:creator>rettops</dc:creator>
      <dc:date>2013-05-20T02:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: command.search.kv performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/command-search-kv-performance/m-p/39214#M8941</link>
      <description>&lt;P&gt;You can set KV_MODE to none in props.conf to turn off automatic extraction of key-value pairs.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2013 07:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/command-search-kv-performance/m-p/39214#M8941</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-05-20T07:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: command.search.kv performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/command-search-kv-performance/m-p/39215#M8942</link>
      <description>&lt;P&gt;Extractions only happen for fields needed by the search.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 15:03:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/command-search-kv-performance/m-p/39215#M8942</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2018-10-29T15:03:43Z</dc:date>
    </item>
  </channel>
</rss>

