<?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 How to generate a timechart of each index showing its cumulative disk usage so that I could predict the disk usage for future timestamps ? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-generate-a-timechart-of-each-index-showing-its-cumulative/m-p/217413#M43366</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am new to Splunk and I am trying to generate a timechart of each Splunk index showing its cumulative disk usage till now. So that I could do a predict of disk usage for future timestamps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sajeesh&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2016 07:03:14 GMT</pubDate>
    <dc:creator>sajeeshpn</dc:creator>
    <dc:date>2016-11-11T07:03:14Z</dc:date>
    <item>
      <title>How to generate a timechart of each index showing its cumulative disk usage so that I could predict the disk usage for future timestamps ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-generate-a-timechart-of-each-index-showing-its-cumulative/m-p/217413#M43366</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am new to Splunk and I am trying to generate a timechart of each Splunk index showing its cumulative disk usage till now. So that I could do a predict of disk usage for future timestamps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sajeesh&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 07:03:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-generate-a-timechart-of-each-index-showing-its-cumulative/m-p/217413#M43366</guid>
      <dc:creator>sajeeshpn</dc:creator>
      <dc:date>2016-11-11T07:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a timechart of each index showing its cumulative disk usage so that I could predict the disk usage for future timestamps ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-generate-a-timechart-of-each-index-showing-its-cumulative/m-p/217414#M43367</link>
      <description>&lt;P&gt;I spent some time on this question because I thought it was pretty good. As it turns out, there isn't really an easy way to do this, but you can get pretty close using dbinspect. Note: I had to use a time range of 24 hours or the results were inaccurate. The searches below charted several months of data for me though.&lt;/P&gt;

&lt;P&gt;Total disk usage for all indexes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbinspect index=* | eval _time=startEpoch | bin _time span=1h | stats sum(sizeOnDiskMB) as sizeOnDiskMB by _time | accum sizeOnDiskMB as TotalSizeOnDiskMB  | eval TotalSizeOnDiskGB=round(TotalSizeOnDiskMB/1024)| timechart sum(TotalSizeOnDiskGB) as TotalSizeOnDiskGB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Total disk usage for a single index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbinspect index=wineventlog splunk_server=se1* | eval _time=startEpoch | bin _time span=1h | stats sum(sizeOnDiskMB) as sizeOnDiskMB by _time index | accum sizeOnDiskMB as TotalSizeOnDiskMB  | eval TotalSizeOnDiskGB=round(TotalSizeOnDiskMB/1024)| timechart sum(TotalSizeOnDiskGB) by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could put the second search in a dashboard with a drop-down for index. I tried a few different ways to get Spunk to chart disk usage over time by index but could not get it to display the results accurately.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 21:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-generate-a-timechart-of-each-index-showing-its-cumulative/m-p/217414#M43367</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2016-11-11T21:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a timechart of each index showing its cumulative disk usage so that I could predict the disk usage for future timestamps ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-generate-a-timechart-of-each-index-showing-its-cumulative/m-p/217415#M43368</link>
      <description>&lt;P&gt;Thank you very much !!&lt;/P&gt;

&lt;P&gt;The second search string for "Total disk usage for a single index" gives results similar to what I wanted.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 05:23:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-generate-a-timechart-of-each-index-showing-its-cumulative/m-p/217415#M43368</guid>
      <dc:creator>sajeeshpn</dc:creator>
      <dc:date>2016-11-14T05:23:34Z</dc:date>
    </item>
  </channel>
</rss>

