<?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 do you calculate the growth of each Index on a monthly basis? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413067#M173554</link>
    <description>&lt;P&gt;The _internal logs are only stored 30 days by default, you have to increase your retention time if you want to keep them longer. So yes thats correct.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jan 2019 08:40:02 GMT</pubDate>
    <dc:creator>dkeck</dc:creator>
    <dc:date>2019-01-21T08:40:02Z</dc:date>
    <item>
      <title>How do you calculate the growth of each Index on a monthly basis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413062#M173549</link>
      <description>&lt;P&gt;We have a requirement to show the data growth of each index on a monthly basis. I tried with the below query from _internal index but it is giving the complete throughput of the index. Instead of that, I need how much storage the indexes are using in total and also the growth trend for each month.&lt;/P&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" host=prod-* log_level=INFO group=per_index_thruput
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;Could anyone please help me to achieve this?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 11:32:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413062#M173549</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2019-01-18T11:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the growth of each Index on a monthly basis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413063#M173550</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;would this be what you were looking for?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log type=Usage | stats sum(eval(b/1024/1024/1024)) AS volume_b by splunk_server date_mday date_month date_year | stats max(volume_b) by splunk_server date_month date_year
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT: sry there was a asterix missing in source. please try again if you allready have&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 11:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413063#M173550</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-18T11:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the growth of each Index on a monthly basis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413064#M173551</link>
      <description>&lt;P&gt;Hey@akarivaratharaj,&lt;/P&gt;

&lt;P&gt;You can try using dbinspect command&lt;BR /&gt;
Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbinspect index=*
| stats sum(rawSize) AS rawTotal, sum(sizeOnDiskMB) AS diskTotalinMB by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternatively,&lt;BR /&gt;
You can try using scripted input to monitor disk space.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/AdvancedDev/ScriptSetup"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/AdvancedDev/ScriptSetup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let me know if this helps!!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 11:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413064#M173551</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2019-01-18T11:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the growth of each Index on a monthly basis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413065#M173552</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You can use _introspection Index to fetch this information&lt;/P&gt;

&lt;P&gt;Please try below query, I am taking average of a day in below query but you can change based on your requirement&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_introspection (host=INDEXER-1 OR host=INDEXER-2) sourcetype=splunk_disk_objects component=Indexes 
| rename data.* AS *
| eval totalindexsize=total_size+datamodel_summary_size
| eval totalindexsize_GB=(totalindexsize/1024)
| fillnull value=0 totalindexsize_GB
| bin span=1d _time 
| stats avg(totalindexsize_GB) AS Total_Index_Size(GB) by host,name,_time
| convert timeformat="%d-%m-%Y" ctime(_time) AS date
| rename name as IndexName
| table date, host, IndexName, Total_Index_Size(GB)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Jan 2019 13:38:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413065#M173552</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-18T13:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the growth of each Index on a monthly basis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413066#M173553</link>
      <description>&lt;P&gt;Hi @all,&lt;/P&gt;

&lt;P&gt;Thankyou so much for your quick responses.&lt;BR /&gt;
I just wanted to know how the indexes in my splunk system are grown in each month of 2018, a kind of trend. So I have checked the license usage log (which contains the size of indexed data in each index) from my splunk master. But I can see only the last 30 days of index log events.&lt;/P&gt;

&lt;P&gt;I just want to clarify that, the log data will be available only for the past 30 days? If that is the case, how can I know that how my index is grown in each month. Is there any other way to get the log details?&lt;/P&gt;

&lt;P&gt;Could anyone please help me on this query.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 08:07:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413066#M173553</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2019-01-21T08:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the growth of each Index on a monthly basis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413067#M173554</link>
      <description>&lt;P&gt;The _internal logs are only stored 30 days by default, you have to increase your retention time if you want to keep them longer. So yes thats correct.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 08:40:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413067#M173554</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-21T08:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the growth of each Index on a monthly basis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413068#M173555</link>
      <description>&lt;P&gt;If you would like to calculate growth of Internal Indexes (Like _internal, _audit and _introspection) then you need to check _introspection index (Query I have provided in my answer) because Internal Indexes do not consume license and due to that you will not able to see it in your license usage but it will still occupy disk space on your Indexer servers.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 09:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413068#M173555</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-21T09:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the growth of each Index on a monthly basis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413069#M173556</link>
      <description>&lt;P&gt;Please accept the answer if it helped you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thank you&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 06:37:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413069#M173556</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-22T06:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the growth of each Index on a monthly basis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413070#M173557</link>
      <description>&lt;P&gt;Okay thankyou&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 06:25:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413070#M173557</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2019-01-23T06:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the growth of each Index on a monthly basis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413071#M173558</link>
      <description>&lt;P&gt;Hi @deepashri_123 ,&lt;/P&gt;

&lt;P&gt;I can see the field &lt;CODE&gt;sizeOnDiskMB&lt;/CODE&gt; have data in MB. So this field denotes the total size used by each indexes. &lt;BR /&gt;
How about &lt;CODE&gt;rawSize&lt;/CODE&gt;? Is this also in MB? Is it denoting the total size allocated to each index? Right?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 10:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/413071#M173558</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2019-01-23T10:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the growth of each Index on a monthly basis?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/528499#M173559</link>
      <description>&lt;P&gt;This is probably the best approach. I am exploring it now. However, as other folks noticed _introspection index does not provide data reflecting reality.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data.datamodel_summary_size&lt;/FONT&gt; says 2x8GB=16GB (roughly) for given index for two indexers&lt;/P&gt;&lt;P&gt;but real disk size of &lt;FONT face="courier new,courier"&gt;datamodel_summary&lt;/FONT&gt;&amp;nbsp;subdirectory for the same index shows 2x12GB=24GB total for two indexeres.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked and summary replication is &lt;EM&gt;not&lt;/EM&gt; set to true.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you know why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 09:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-calculate-the-growth-of-each-Index-on-a-monthly-basis/m-p/528499#M173559</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2020-11-09T09:36:10Z</dc:date>
    </item>
  </channel>
</rss>

