<?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 to create a summary Index that will give license usage by index and sourcetype? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-summary-Index-that-will-give-license-usage-by/m-p/307564#M57922</link>
    <description>&lt;P&gt;@somesoni2 - it's interesting that in the admin class they try to stir us from summary indexes towards data model accelerations. &lt;/P&gt;</description>
    <pubDate>Sat, 31 Mar 2018 23:49:57 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2018-03-31T23:49:57Z</dc:date>
    <item>
      <title>How to create a summary Index that will give license usage by index and sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-summary-Index-that-will-give-license-usage-by/m-p/307561#M57919</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to create a summary index which will gives us the license usage by index and sourcetype, which will be used for creating a dashboard with trends based on index and breaches per day. The process followed is &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Schedule a saved search with the below query
&lt;CODE&gt;index=_internal type=Usage source="/opt/splunk/var/log/splunk/license_usage.log" |stats sum(b) as bytes by idx, st&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Enable Summary Indexing&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;After that I am using below query to pull out the trend for last 24hrs&lt;BR /&gt;
&lt;CODE&gt;index=summary search_name=savedsearch_name |stats sum(bytes) by idx |eval GB = round(bytes/1024/1024/1024, 2)&lt;/CODE&gt;&lt;BR /&gt;
But the above query gave me wrong results. Could you please help me to sort out the mistake? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 14:37:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-summary-Index-that-will-give-license-usage-by/m-p/307561#M57919</guid>
      <dc:creator>siva_cg</dc:creator>
      <dc:date>2018-03-29T14:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a summary Index that will give license usage by index and sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-summary-Index-that-will-give-license-usage-by/m-p/307562#M57920</link>
      <description>&lt;P&gt;Hey@siva_cg &lt;/P&gt;

&lt;P&gt;You can already find the trend of license usage by index on the license master for 30 days in the usage report.&lt;BR /&gt;
Is there any specific reason to use summary index?&lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2018 05:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-summary-Index-that-will-give-license-usage-by/m-p/307562#M57920</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2018-03-31T05:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a summary Index that will give license usage by index and sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-summary-Index-that-will-give-license-usage-by/m-p/307563#M57921</link>
      <description>&lt;P&gt;Since you (might) want to calculate trends, your summary index needs _time field and a smaller, evenly distributed summary indexing frequency. I would do something like this&lt;/P&gt;

&lt;P&gt;Summary index search name:   &lt;CODE&gt;license_usage_5min_summary&lt;/CODE&gt;&lt;BR /&gt;
Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd component=LicenseUsage type=Usage | bucket span=5m _time | stats sum(b) as bytes by _time idx st
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Time range:  &lt;CODE&gt;-9m@m&lt;/CODE&gt; to &lt;CODE&gt;-4m@m&lt;/CODE&gt;  (allowing 4min delay to account for indexing delay&lt;BR /&gt;
Cron Schedule : &lt;CODE&gt;4-59/5 * * * *&lt;/CODE&gt; (every 5 mins, starting at 4th min. Since we take a 4 min delay, your data will collected for even time blocks 0-5 mins, 5-10min etc)&lt;/P&gt;

&lt;P&gt;You can backfill it for past period using this method: &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.2/Knowledge/Managesummaryindexgapsandoverlaps#Use_the_backfill_script_to_add_other_data_or_fill_summary_index_gaps"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.2/Knowledge/Managesummaryindexgapsandoverlaps#Use_the_backfill_script_to_add_other_data_or_fill_summary_index_gaps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Now use new summary index data for your trending. Since this has correct _time value it'll honor time-range as well.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2018 23:43:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-summary-Index-that-will-give-license-usage-by/m-p/307563#M57921</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-31T23:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a summary Index that will give license usage by index and sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-summary-Index-that-will-give-license-usage-by/m-p/307564#M57922</link>
      <description>&lt;P&gt;@somesoni2 - it's interesting that in the admin class they try to stir us from summary indexes towards data model accelerations. &lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2018 23:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-summary-Index-that-will-give-license-usage-by/m-p/307564#M57922</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-03-31T23:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a summary Index that will give license usage by index and sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-summary-Index-that-will-give-license-usage-by/m-p/307565#M57923</link>
      <description>&lt;P&gt;That is correct, but summary indexing has its own advantages. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.3/Knowledge/Aboutsummaryindexing#When_should_I_use_summary_indexing.3F"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.3/Knowledge/Aboutsummaryindexing#When_should_I_use_summary_indexing.3F&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Apr 2018 05:07:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-summary-Index-that-will-give-license-usage-by/m-p/307565#M57923</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-01T05:07:06Z</dc:date>
    </item>
  </channel>
</rss>

