<?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: How can I cache search results to avoid data recalculation? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162068#M45851</link>
    <description>&lt;P&gt;Export to a lookup table&lt;/P&gt;

&lt;P&gt;Then run your dashboard  searches from the lookup table.&lt;BR /&gt;
&lt;A href="http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/"&gt;http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2015 19:37:45 GMT</pubDate>
    <dc:creator>cpt12tech</dc:creator>
    <dc:date>2015-07-30T19:37:45Z</dc:date>
    <item>
      <title>How can I cache search results to avoid data recalculation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162062#M45845</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a dashboard with parameterized search (it takes three arguments from timepicker and dropdowns) that takes long time if I have a big amount of data because of two external lookups I use.&lt;/P&gt;

&lt;P&gt;1) Is there a way to cache / save / speed-up my search? Please note that I need realtime results too, because the user can choose real time window too, I cannot use summary index because I don't need just statistical data, but fields like&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;name category country timestamp&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;2) Is there a way to avoid the recalculation of the results when I navigate away and back to the dashboard?&lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2014 08:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162062#M45845</guid>
      <dc:creator>RiccardoV</dc:creator>
      <dc:date>2014-10-14T08:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I cache search results to avoid data recalculation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162063#M45846</link>
      <description>&lt;P&gt;"Report Acceleration" is precisely storing the search-peer answers to a particular class of search, but it's quite tricky to apply this to a dashboard where the search gets parameterized.  We would need to have exactly equivalent fully qualified searches to the paramaterized version of the searches in order to know that we can correctly produce the answers ahead of time and safely use them.&lt;/P&gt;

&lt;P&gt;Another approach is to simply schedule the searches ahead of time for your dashboard, but again this involves computing the parameter-space that will be used ahead of time.&lt;/P&gt;

&lt;P&gt;We don't have a lazy-reuse option.  Typically that's not desirable because the answers for searches may change over time, so simply doing something like lazily cacheing answers to ad-hoc searches would be unhelpful.&lt;/P&gt;

&lt;P&gt;How to most efficiently get your results is kind of particular to the goals of your searches.  For example if you just want to compute reports on a relatively small set of field values , data model acceleration may be the ideal path.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2014 09:31:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162063#M45846</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2014-10-14T09:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I cache search results to avoid data recalculation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162064#M45847</link>
      <description>&lt;P&gt;You could use summary indexes, just use "stats" command at the end add lots of "by clause", like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;search bla | stats count by name, category, country, timestamp&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But remember that at summary index will only improve the performance if the data set is smaller. &lt;/P&gt;

&lt;P&gt;You might get better performance creating different summary indexes, one for each report or at least grouping things together where it makes sense... also, if you'll be using "by _time", consider using a &lt;CODE&gt;| bucket span=1h _time&lt;/CODE&gt; (or any other time span) before your stats command to group things a bit.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 02:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162064#M45847</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2014-10-15T02:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I cache search results to avoid data recalculation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162065#M45848</link>
      <description>&lt;P&gt;Hi musskopf and thanks for your reply.&lt;BR /&gt;
I think that I can't use summary index here because my search is parameterized with two user inputs (sourcetype and field to lookup). So I cannot foresee which inputs the user will use! How can I set up a summary index if I don't know the actual query in advance?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 08:36:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162065#M45848</guid>
      <dc:creator>RiccardoV</dc:creator>
      <dc:date>2014-10-15T08:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I cache search results to avoid data recalculation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162066#M45849</link>
      <description>&lt;P&gt;Sure, there are some situations where you need to know better what the report is supposed to return. In my case I do have input fields, for example, country, sex and age.&lt;/P&gt;

&lt;P&gt;If you let the user chose any of the fields it won't help. Might be better understand what are the more common combinations to produce one fast report and another very flexible but slow. Btw, are you searching over all indexes as well? limiting the search to a specific index always help.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 21:26:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162066#M45849</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2014-10-15T21:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I cache search results to avoid data recalculation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162067#M45850</link>
      <description>&lt;P&gt;I'm searching on a single index and on the sourcetype that user will set on rutime&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2014 07:09:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162067#M45850</guid>
      <dc:creator>RiccardoV</dc:creator>
      <dc:date>2014-10-16T07:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I cache search results to avoid data recalculation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162068#M45851</link>
      <description>&lt;P&gt;Export to a lookup table&lt;/P&gt;

&lt;P&gt;Then run your dashboard  searches from the lookup table.&lt;BR /&gt;
&lt;A href="http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/"&gt;http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2015 19:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-cache-search-results-to-avoid-data-recalculation/m-p/162068#M45851</guid>
      <dc:creator>cpt12tech</dc:creator>
      <dc:date>2015-07-30T19:37:45Z</dc:date>
    </item>
  </channel>
</rss>

