<?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: Report Acceleration on subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Report-Acceleration-on-subsearch/m-p/139577#M38402</link>
    <description>&lt;P&gt;The value of a main search is overwritten by the result of subsearch. Is it necessary to use a subsearch? I think that you should explain what report you want.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;(_time),count,AvgTime,Users&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 13 Nov 2013 06:07:30 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2013-11-13T06:07:30Z</dc:date>
    <item>
      <title>Report Acceleration on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-Acceleration-on-subsearch/m-p/139576#M38401</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I'm trying to apply some search acceleration on a subsearch (using the join command), but I can't seem to get it working. Does anyone know if subsearches can be accelerated?&lt;/P&gt;

&lt;P&gt;This is my saved accelerated search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=prod sourcetype=odr earliest=-3mon@mon latest=@d | timechart span=10m latest(date_wday) as date_wday, count, dc(cs_username) as Users, avg(time_taken) as AvgTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I run the following search separately, the acceleration works perfectly. But when I use this same search within the join command, the search isn't accelerated.&lt;/P&gt;

&lt;P&gt;Here's my full search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=prod sourcetype=odr | timechart span=10m latest(date_wday) as date_wday, count, dc(cs_username) as Users, avg(time_taken) as AvgTime | eval count=if(strftime(_time,"%H%M")&amp;gt;=strftime(now(),"%H%M"),"",count) | eval Users=if(strftime(_time,"%H%M")&amp;gt;=strftime(now(),"%H%M"),"",Users) | eval AvgTime=if(strftime(_time,"%H%M")&amp;gt;=strftime(now(),"%H%M"),"",AvgTime) | eval date_wday=if(isnull(date_wday),lower(strftime(_time,"%A")),date_wday) | eval 10mintime=strftime(_time,"%T") | join date_wday, 10mintime [ search index=prod sourcetype=odr earliest=-3mon@mon latest=@d | timechart span=10m latest(date_wday) as date_wday, count, dc(cs_username) as Users, avg(time_taken) as AvgTime | eval 10mintime=strftime(_time,"%T") | eval hitsLowBand=count-(count*0.2) | eval hitsHighBand=(count+(count*0.2))-hitsLowBand | eval timeLowBand=AvgTime-(AvgTime*0.2) | eval timeHighBand=(AvgTime+(AvgTime*0.2))-timeLowBand | eval usersLowBand=Users-(Users*0.2) | eval usersHighBand=(Users+(Users*0.2))-usersLowBand ] | timechart span=10m first(hitsLowBand) as hitsLowBand, first(hitsHighBand) as hitsHighBand, first(count) as Hits, first(timeLowBand) as timeLowBand, first(timeHighBand) as timeHighBand, first(AvgTime) as AvgTime, first(usersLowBand) as usersLowBand, first(usersHighBand) as usersHighBand, first(Users) as Users
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 23:28:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-Acceleration-on-subsearch/m-p/139576#M38401</guid>
      <dc:creator>ashleyherbert</dc:creator>
      <dc:date>2013-11-12T23:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Report Acceleration on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-Acceleration-on-subsearch/m-p/139577#M38402</link>
      <description>&lt;P&gt;The value of a main search is overwritten by the result of subsearch. Is it necessary to use a subsearch? I think that you should explain what report you want.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;(_time),count,AvgTime,Users&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 13 Nov 2013 06:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-Acceleration-on-subsearch/m-p/139577#M38402</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2013-11-13T06:07:30Z</dc:date>
    </item>
  </channel>
</rss>

