<?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 How can I optimize the performance of my search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-optimize-the-performance-of-my-search/m-p/199857#M57899</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need a better search than this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=shop sourcetype="source1" | chart count by action,productId | append [search index=shop sourcetype="source2" | chart count by action,productId]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It is taking too much time to return results. Can someone help optimize my search?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2015 11:50:08 GMT</pubDate>
    <dc:creator>siddhu_93</dc:creator>
    <dc:date>2015-10-26T11:50:08Z</dc:date>
    <item>
      <title>How can I optimize the performance of my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-optimize-the-performance-of-my-search/m-p/199857#M57899</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need a better search than this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=shop sourcetype="source1" | chart count by action,productId | append [search index=shop sourcetype="source2" | chart count by action,productId]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It is taking too much time to return results. Can someone help optimize my search?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 11:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-optimize-the-performance-of-my-search/m-p/199857#M57899</guid>
      <dc:creator>siddhu_93</dc:creator>
      <dc:date>2015-10-26T11:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I optimize the performance of my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-optimize-the-performance-of-my-search/m-p/199858#M57900</link>
      <description>&lt;P&gt;how about&lt;BR /&gt;
index=shop | stats c(sourcetype) by action,productId&lt;BR /&gt;
you can constrain it to specific source types too&lt;BR /&gt;
index=shop (sourcetype=sourcetype1 OR sourcetype=sourcetype2)| stats c(sourcetype) by action,productId&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 13:02:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-optimize-the-performance-of-my-search/m-p/199858#M57900</guid>
      <dc:creator>mtranchita</dc:creator>
      <dc:date>2015-10-26T13:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I optimize the performance of my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-optimize-the-performance-of-my-search/m-p/199859#M57901</link>
      <description>&lt;P&gt;index=shop (sourcetype=source1 OR sourcetype=source2)&lt;BR /&gt;
| fields+ action, productId&lt;BR /&gt;
| chart count by action, productId&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 13:03:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-optimize-the-performance-of-my-search/m-p/199859#M57901</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2015-10-26T13:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I optimize the performance of my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-optimize-the-performance-of-my-search/m-p/199860#M57902</link>
      <description>&lt;P&gt;Why is it so slow?  Is it purely the volume of data, or is it field extractions or what?&lt;/P&gt;

&lt;P&gt;To find out, please run the search over some reasonable amount of time, let it finish (or stop it) then click on the job inspector for the search.  Post back what the largest few consumers of time are - a couple of them should stand out as "This is where the search's time is being spent."&lt;/P&gt;

&lt;P&gt;Also, compare the amount of time for the above search with the amount of time for the same search if you try running it in "Fast mode".   (That's the drop down at the right side, "Fast mode", "Verbose mode" or "Smart mode".&lt;/P&gt;

&lt;P&gt;There are lots of solutions, which ones will work best for your particular problem is probably dependent on those answers.  &lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 13:04:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-optimize-the-performance-of-my-search/m-p/199860#M57902</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2015-10-26T13:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I optimize the performance of my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-optimize-the-performance-of-my-search/m-p/199861#M57903</link>
      <description>&lt;P&gt;Not an answer, because you got some nice hints already. But check the slides from this &lt;CODE&gt;.conf&lt;/CODE&gt; Session &lt;A href="http://conf.splunk.com/session/2015/conf2015_JHarty_DuncanTurnbull_Splunk_UsingSplunkSearchLanguage_AQuickGuideToSearch.pdf"&gt;http://conf.splunk.com/session/2015/conf2015_JHarty_DuncanTurnbull_Splunk_UsingSplunkSearchLanguage_AQuickGuideToSearch.pdf&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 21:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-optimize-the-performance-of-my-search/m-p/199861#M57903</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-10-26T21:25:14Z</dc:date>
    </item>
  </channel>
</rss>

