<?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: Query HDD space, index and data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160068#M45221</link>
    <description>&lt;P&gt;Thank you Martin_Mueller and MuS for your answer, I appreciate your support.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jun 2015 18:22:54 GMT</pubDate>
    <dc:creator>rene847</dc:creator>
    <dc:date>2015-06-19T18:22:54Z</dc:date>
    <item>
      <title>Query HDD space, index and data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160060#M45213</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have not been able to find a good query with all my trying.... I need help please!&lt;/P&gt;

&lt;P&gt;Can anyone tell how I can:&lt;BR /&gt;
I would like to get a query that would give me the disk space since December 1, 2014 for each month until today (to see the progression).&lt;BR /&gt;
Splunk has sent me alert each day (email) about the status of our indexes (view and control our licenses). I use the same alert with these values "-198d@d to now" and it doesn't work, I only view 1 month of data and I don't know why.&lt;/P&gt;

&lt;P&gt;Here is my normal query:&lt;BR /&gt;
index="_internal" source="*metrics.log" per_index_thruput | eval GB=kb/(1024*1024) | stats sum(GB) as total by series date_mday | sort total | fields + date_mday,series,total | reverse&lt;/P&gt;

&lt;P&gt;I'm looking for the same query (or similar) for:&lt;BR /&gt;
 - all space&lt;BR /&gt;
 - all the indexes&lt;BR /&gt;
 - all data entries&lt;BR /&gt;
==&amp;gt; number of entry since December 1, 2014 until today for each month.&lt;/P&gt;

&lt;P&gt;Is it possible? Do you have an query idea?&lt;/P&gt;

&lt;P&gt;Thank you&lt;BR /&gt;
Regards&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:16:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160060#M45213</guid>
      <dc:creator>rene847</dc:creator>
      <dc:date>2020-09-28T20:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Query HDD space, index and data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160061#M45214</link>
      <description>&lt;P&gt;Did you take a look at the reports included in the Distributed Management Console?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 19:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160061#M45214</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-06-17T19:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Query HDD space, index and data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160062#M45215</link>
      <description>&lt;P&gt;Yes, that way as possible and I tried.&lt;BR /&gt;
However, I can not take a value greater than 30 days otherwise I have no data?&lt;BR /&gt;
Do you have an idea?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 18:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160062#M45215</guid>
      <dc:creator>rene847</dc:creator>
      <dc:date>2015-06-18T18:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Query HDD space, index and data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160063#M45216</link>
      <description>&lt;P&gt;As per default settings, Splunk only retains thirty days of data in &lt;CODE&gt;_internal&lt;/CODE&gt;. You have two options to change that for the future.&lt;/P&gt;

&lt;P&gt;The easy way out: Increase the retention time for the index. You'll need a lot more disk space, but it's a simple change and you'll have all the data available.&lt;/P&gt;

&lt;P&gt;The efficient way: Set up summary indexing that for example runs daily and grabs yesterday's data, calculates a daily report and stores that in a summary index with long retention time. When you want to run an overall report you simply run it on the pre-aggregated data in the summary index for a fast result with minimal space used. It's a little more effort than the easy way out, and you can't add more data to your summary retroactively just like you can't retroactively increase the retention time and regain old data that was deleted...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 19:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160063#M45216</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-06-18T19:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Query HDD space, index and data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160064#M45217</link>
      <description>&lt;P&gt;Hi rene847,&lt;/P&gt;

&lt;P&gt;all Splunk internal indexes like &lt;CODE&gt;_internal&lt;/CODE&gt; and &lt;CODE&gt;_introspection&lt;/CODE&gt; have a default retention of 30 days. You can check it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk cmd btool indexes list --debug _internal | grep frozenTimePeriodInSecs
/opt/splunk/etc/system/default/indexes.conf frozenTimePeriodInSecs = 2592000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change it in &lt;CODE&gt;indexes.conf&lt;/CODE&gt; but be aware of the increasing disk space needs. Also you may need to adapt the &lt;CODE&gt;maxTotalDataSizeMB&lt;/CODE&gt; option which is by default at 500000.&lt;/P&gt;

&lt;P&gt;Hope that helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 19:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160064#M45217</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-18T19:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Query HDD space, index and data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160065#M45218</link>
      <description>&lt;P&gt;.... I'm too slow in the morning &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 19:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160065#M45218</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-18T19:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Query HDD space, index and data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160066#M45219</link>
      <description>&lt;P&gt;Your mornings are all wrong &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 19:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160066#M45219</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-06-18T19:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Query HDD space, index and data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160067#M45220</link>
      <description>&lt;P&gt;No, not at all - I'm in a time machine. Currently I'm writing from your future &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 19:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160067#M45220</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-18T19:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query HDD space, index and data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160068#M45221</link>
      <description>&lt;P&gt;Thank you Martin_Mueller and MuS for your answer, I appreciate your support.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2015 18:22:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-HDD-space-index-and-data/m-p/160068#M45221</guid>
      <dc:creator>rene847</dc:creator>
      <dc:date>2015-06-19T18:22:54Z</dc:date>
    </item>
  </channel>
</rss>

