<?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: Should search performance improve using saved search or summary index? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426008#M3800</link>
    <description>&lt;P&gt;where I have to pass the argument events=true ? can  you share more details please ?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2019 05:02:17 GMT</pubDate>
    <dc:creator>pgadhari</dc:creator>
    <dc:date>2019-04-29T05:02:17Z</dc:date>
    <item>
      <title>Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425989#M3781</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am running a search which shows the total_used_space (storage used) of an application for last 30 days. Below is the query for the same, but it takes some 40 to 45 seconds to load the panel. I want to improve the performance of this search, so that the panel loads faster. I tried creating a saved search and use that search in the panel, but still it is running very slow. Below is the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=app sourcetype="app:users" | dedup user| stats sum(space_used) as total_space | eval total_space=round(total_space/1024/1024/1024/1024,2)."TB"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please suggest on how can I create a summary index for this, as I think summary index would improve the performance for the same. Please help resolve this issue ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
PG&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:14:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425989#M3781</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2020-09-30T00:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425990#M3782</link>
      <description>&lt;P&gt;You could perhaps see if the below search improves the time taken? I have assumed you may want to know usage by user and only want to track where there are valid values. If you don't need user , you can take that off.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=app sourcetype="app:users" user=* space_used=* | fields space_used, user | stats sum(space_used) as total_space  by user| eval total_space=round(total_space/1024/1024/1024/1024,2)."TB"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Depending on your number of events per day in your index, search against 30day could take a long time. If the search is still taking long, you can create a savedsearch that runs each day or a few times in a day, but only looks like last 1 day or a few hours [ you would need to adjust the earliest and latest to avoid overlap]. Pls refer to &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Knowledge/Usesummaryindexing"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/Knowledge/Usesummaryindexing&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 08:30:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425990#M3782</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-04-25T08:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425991#M3783</link>
      <description>&lt;P&gt;Hello @pgadhari &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;If you don't want to run the query again and again, then you can create a scheduled search for this and using loadjob command you can load the result of last job, which can make it faster.&lt;/LI&gt;
&lt;LI&gt;Otherwise go for acceleration of report which can also be helpful. you can create acceleration for 30days.&lt;/LI&gt;
&lt;LI&gt;For summary indexing, you can create a summary index and using collect command send the results to that index.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 25 Apr 2019 08:32:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425991#M3783</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-04-25T08:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425992#M3784</link>
      <description>&lt;P&gt;No. I dont want to know usage by user. I am finding out total used space by all users in last 30 days. The query you have written will not give me my result, as it is returning used_space by each user and that too multiple entries for each user. That is why I am using dedup user so that i get latest utilization for users. My query is returning the proper value, but as that has to be run for 30 days, which is  taking time.&lt;/P&gt;

&lt;P&gt;Hence, I need suggestion that how can I make use of summary index in this and this output value should be close to real-time. How do I configure summary index for a panel that aggregates the data for last 30 days and shows the real-time value ? Hope you got my question ? Please advise ?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 08:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425992#M3784</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-04-25T08:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425993#M3785</link>
      <description>&lt;P&gt;Can you provide an example of how can I implement point no. 1 ?&lt;/P&gt;

&lt;P&gt;Out of 3 points you have specified ? which is the best solution, please advise ?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 08:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425993#M3785</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-04-25T08:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425994#M3786</link>
      <description>&lt;P&gt;Hello @pgadhari&lt;/P&gt;

&lt;P&gt;If you want to have the results showed for last 30days, then it is better to go with load job one, you can schedule job to run once a day, at the starting of day and load the results to the panel for the full day. &lt;BR /&gt;
like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | loadjob savedsearch="admin:search:MySavedSearch"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I will always to try to find out other way then summary indexing and also with summary indexing if you are changing the sourcetype then the usage will count as license usage.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 10:26:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425994#M3786</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-04-25T10:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425995#M3787</link>
      <description>&lt;P&gt;The problem with the loadjob is - if the user wants to change the "time range" from 30 days to last 2 months or 3 months, then it will still show the value for 30 days only, which will be wrong, as the saved search will be configured to run for 30 days. How can I resolve that issue ?  any solution on that problem ?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 10:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425995#M3787</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-04-25T10:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425996#M3788</link>
      <description>&lt;P&gt;Hello @pgadhari&lt;/P&gt;

&lt;P&gt;Check this out, you can do it like this:&lt;BR /&gt;
    &lt;A href="https://answers.splunk.com/answers/188469/how-to-get-results-to-load-with-a-time-picker-sett.html#answer-432226"&gt;https://answers.splunk.com/answers/188469/how-to-get-results-to-load-with-a-time-picker-sett.html#answer-432226&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 10:37:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425996#M3788</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-04-25T10:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425997#M3789</link>
      <description>&lt;P&gt;when you use stats by user, it shouldn't return multiple entries for same user.  So, if you change your search to something like below, how long does it take to run?  &lt;CODE&gt;index=app sourcetype="app:users" user=* space_used=* | fields space_used | stats sum(space_used) as total_space| eval total_space=round(total_space/1024/1024/1024/1024,2)."TB"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If you are going down the summary index approach, you can setup a scheduled search (as per the link sent earlier) and write the results to 'summary' index. Your dashboard then can have another search that pulls the results off the summary index. [ the eval total_space can be moved to the search in the dashboard as well]&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 10:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425997#M3789</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-04-25T10:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425998#M3790</link>
      <description>&lt;P&gt;Ok. Will check that and update shortly. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 10:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425998#M3790</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-04-25T10:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425999#M3791</link>
      <description>&lt;P&gt;@pgadgari&lt;/P&gt;

&lt;P&gt;Any update?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 06:36:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/425999#M3791</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-04-26T06:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426000#M3792</link>
      <description>&lt;P&gt;@vishaltaneja07011993 .. I tried putting the time picker options using above link, but that is not working. It takes the time from "time picker" properly in the search, but no results are found in that timeframe selected.  Please advise ?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 11:26:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426000#M3792</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-04-27T11:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426001#M3793</link>
      <description>&lt;P&gt;the query still takes 112 seconds to execute. If I use stats by user, it calculates all the event values of last 30 days which is not correct, hence I have to use "dedup user" which will take latest used_space field value and add for all users. But still it takes more than 100 seconds which is very slow. &lt;/P&gt;

&lt;P&gt;I have already configured summary index which is populated by scheduled search, but still that takes time. Hence, I think feasible approach is "loadjob", but the loadjob time range is the issue, as it does not load data based on timepicker option.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 11:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426001#M3793</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-04-27T11:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426002#M3794</link>
      <description>&lt;P&gt;It's a very good use case for a summary index. The major draw back of summary index is the fact that it's very common for the Splunk platform to skip searches and the summary index integrity can be compromised when searches are skipped. But here in your use case (if I understand it correctly), some skipped searches won't impact the value of the generated summary index.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 14:03:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426002#M3794</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-27T14:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426003#M3795</link>
      <description>&lt;P&gt;The Scheduled Saved Search option should work just fine for your use-case.  You are probably using the &lt;CODE&gt;| savesearch&lt;/CODE&gt; in your panel but try switching to &lt;CODE&gt;| loadjob&lt;/CODE&gt; and make sure that your saved search is scheduled to run periodically and your panel will be instantaneous.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 03:38:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426003#M3795</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-28T03:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426004#M3796</link>
      <description>&lt;P&gt;I am trying to use the loadjob for some other query also wherein I am facing the performance issues. But somehow I think it is not getting the _time after the loadjob output. &lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 08:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426004#M3796</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-04-28T08:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426005#M3797</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/49295"&gt;@vishaltaneja070&lt;/a&gt;11993  - I was able to fix the total_used_space issue using the loadjob command wherein it shows for last 30 days. That is working fine now. &lt;/P&gt;

&lt;P&gt;I have another query which is powered by summary index and datamodel. But that query is also taking more time to execute and I am thinking of using loadjob command there, but I think the problem is - after the loadjob command, _time is not returned and thats why the start_time and end_time link which you shared earlier does not seems to be working. I will share the query details shortly. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426005#M3797</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2020-09-30T00:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426006#M3798</link>
      <description>&lt;P&gt;I will close this question, as loadjob for my this query is working very good. I have another query for which I am opening a new question. Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 09:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426006#M3798</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-04-28T09:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426007#M3799</link>
      <description>&lt;P&gt;That makes no sense.  You just need to pass it the &lt;CODE&gt;events=true&lt;/CODE&gt; argument.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 19:02:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426007#M3799</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-28T19:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Should search performance improve using saved search or summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426008#M3800</link>
      <description>&lt;P&gt;where I have to pass the argument events=true ? can  you share more details please ?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 05:02:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Should-search-performance-improve-using-saved-search-or-summary/m-p/426008#M3800</guid>
      <dc:creator>pgadhari</dc:creator>
      <dc:date>2019-04-29T05:02:17Z</dc:date>
    </item>
  </channel>
</rss>

