<?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: Improve Search Performance in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Improve-Search-Performance/m-p/271373#M81678</link>
    <description>&lt;P&gt;For every query, other than ones which are showing license_usage, you can use tstats. For license usage queries, I would sugggest to go for summary indexing/data model with accelaration.&lt;/P&gt;

&lt;P&gt;Total Number of Systems - 30 Days&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats dc(host) as Hosts WHERE index=test earliest=-2mon@mon by _time span=1mon
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Total Volume Indexed - 30 Days&lt;BR /&gt;
Create a summary index with below search to run daily and then use the result of that summary index in  your dashboard&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=license_usage.log type=Usage pool=* idx=test earliest=-1d@d latest=@d | timechart span=1mon sum(b) as Bytes 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Total Number of Events - 30 Days&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=test earliest=-2mon@mon by _time span=1mon
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Total Number of Sourcetypes - 30 Days&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats dc(sourcetype) as sourcetypes WHERE index=test earliest=-2mon@mon by _time span=1mon 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Total Volume Per Day&lt;BR /&gt;
Use the summary index created for "Total Volume Indexed - 30 Days"&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2016 14:55:19 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-07-26T14:55:19Z</dc:date>
    <item>
      <title>Improve Search Performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Improve-Search-Performance/m-p/271372#M81677</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Ive constructed the below 5 searches to populate a dashboard, once they go onto our live systems they are going to be going through TB of data.. I need to make these searches as efficient as possible using using tstats, rest endpoints, summaries, scheduled reports and was wondering if anyone could point me in the direction of what to use and where in my searches or improve the syntax? (search noob) So far timechart is being used for all of them as they are in single value visual form with a trend arrow per month. &lt;/P&gt;

&lt;P&gt;Total Number of Systems - 30 Days&lt;BR /&gt;
index=test earliest=-2mon@mon | timechart span=1mon dc(host) as Hosts&lt;/P&gt;

&lt;P&gt;Total Volume Indexed - 30 Days&lt;BR /&gt;
index=_internal source=&lt;EM&gt;license_usage.log type=Usage pool=&lt;/EM&gt; idx=test earliest=-2mon@mon | rename idx as Index | timechart span=1mon sum(b) as Bytes&lt;/P&gt;

&lt;P&gt;Total Number of Events - 30 Days&lt;BR /&gt;
index=test earliest=-2mon@mon| timechart span=1mon count&lt;/P&gt;

&lt;P&gt;Total Number of Sourcetypes - 30 Days&lt;BR /&gt;
index=test earliest=-2mon@mon| timechart span=1mon dc(sourcetype) as sourcetypes&lt;/P&gt;

&lt;P&gt;Total Volume Per Day&lt;BR /&gt;
index=_internal source=&lt;EM&gt;license_usage.log type=Usage pool=&lt;/EM&gt; idx=test earliest=-2d@d | rename idx as Index | timechart span=1d sum(b) as Bytes&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:18:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Improve-Search-Performance/m-p/271372#M81677</guid>
      <dc:creator>mwdbhyat</dc:creator>
      <dc:date>2020-09-29T10:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Search Performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Improve-Search-Performance/m-p/271373#M81678</link>
      <description>&lt;P&gt;For every query, other than ones which are showing license_usage, you can use tstats. For license usage queries, I would sugggest to go for summary indexing/data model with accelaration.&lt;/P&gt;

&lt;P&gt;Total Number of Systems - 30 Days&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats dc(host) as Hosts WHERE index=test earliest=-2mon@mon by _time span=1mon
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Total Volume Indexed - 30 Days&lt;BR /&gt;
Create a summary index with below search to run daily and then use the result of that summary index in  your dashboard&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=license_usage.log type=Usage pool=* idx=test earliest=-1d@d latest=@d | timechart span=1mon sum(b) as Bytes 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Total Number of Events - 30 Days&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=test earliest=-2mon@mon by _time span=1mon
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Total Number of Sourcetypes - 30 Days&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats dc(sourcetype) as sourcetypes WHERE index=test earliest=-2mon@mon by _time span=1mon 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Total Volume Per Day&lt;BR /&gt;
Use the summary index created for "Total Volume Indexed - 30 Days"&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:55:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Improve-Search-Performance/m-p/271373#M81678</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-26T14:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Search Performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Improve-Search-Performance/m-p/271374#M81679</link>
      <description>&lt;P&gt;Thanks for this!! Is there any way I can keep my trend indicator arrow? They are not showing anymore now that the search has changed..They are enabled etc.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 16:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Improve-Search-Performance/m-p/271374#M81679</guid>
      <dc:creator>mwdbhyat</dc:creator>
      <dc:date>2016-07-26T16:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Search Performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Improve-Search-Performance/m-p/271375#M81680</link>
      <description>&lt;P&gt;Quick question - shouldnt, index=_internal source=license_usage.log type=Usage pool=* idx=test earliest=-1d@d latest=@d | timechart span=1mon sum(b) as Bytes have earliest and latest set to @mon rather than @day?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:24:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Improve-Search-Performance/m-p/271375#M81680</guid>
      <dc:creator>mwdbhyat</dc:creator>
      <dc:date>2020-09-29T10:24:25Z</dc:date>
    </item>
  </channel>
</rss>

