<?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: index start date in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38553#M7119</link>
    <description>&lt;P&gt;That's why I am here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2012 23:57:04 GMT</pubDate>
    <dc:creator>araitz</dc:creator>
    <dc:date>2012-04-27T23:57:04Z</dc:date>
    <item>
      <title>index start date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38550#M7116</link>
      <description>&lt;P&gt;I need to generate a daily report in splunk with the list of all the indexes and their earliest event(timestamp) and their latest(timestamp).  Is there a way to do it?  I have the below queries.&lt;/P&gt;

&lt;P&gt;For the start and end time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sourcetypes index=XXX | stats min(firstTime) AS begin max(lastTime) AS end
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For the list of indexes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventcount summarize=false index=* dedup=index | top 0 index | fields index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Apr 2012 17:48:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38550#M7116</guid>
      <dc:creator>sushil_borah</dc:creator>
      <dc:date>2012-04-27T17:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: index start date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38551#M7117</link>
      <description>&lt;P&gt;Schedule this to run daily:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/data/indexes 
| search totalEventCount &amp;gt; 0 
| eval now=strftime(now(), "%Y-%m-%d")
| stats first(maxTime) as maxTime first(minTime) as minTime first(now) as now first(currentDBSizeMB) as currentDBSizeMB by title 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Apr 2012 18:37:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38551#M7117</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-04-27T18:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: index start date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38552#M7118</link>
      <description>&lt;P&gt;thanks thats exactly what i needed&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2012 21:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38552#M7118</guid>
      <dc:creator>sushil_borah</dc:creator>
      <dc:date>2012-04-27T21:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: index start date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38553#M7119</link>
      <description>&lt;P&gt;That's why I am here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2012 23:57:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38553#M7119</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-04-27T23:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: index start date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38554#M7120</link>
      <description>&lt;P&gt;is it possible to add the index volume to the above genertated report?&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2012 20:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38554#M7120</guid>
      <dc:creator>sushil_borah</dc:creator>
      <dc:date>2012-05-22T20:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: index start date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38555#M7121</link>
      <description>&lt;P&gt;see my update above.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2012 21:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38555#M7121</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-05-22T21:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: index start date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38556#M7122</link>
      <description>&lt;P&gt;does currentDBSizeMB lists the total index volume?&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2012 21:17:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38556#M7122</guid>
      <dc:creator>sushil_borah</dc:creator>
      <dc:date>2012-05-22T21:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: index start date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38557#M7123</link>
      <description>&lt;P&gt;It is the total size of the index in MB at the time that the search was run.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2012 21:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38557#M7123</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-05-22T21:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: index start date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38558#M7124</link>
      <description>&lt;P&gt;Awesome answer. For me this refinement was helpful.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rest /services/data/indexes 
 | search totalEventCount &amp;gt; 0 
 | eval now=strftime(now(), "%Y-%m-%d")
 | stats first(maxTime) as "Earliest Event Time" first(minTime) as "Latest Event Time" first(now) as "Current Date" first(currentDBSizeMB) as currentDBSizeMB by title 
 | rename title as "Index" | sort - currentDBSizeMB
 | eval "Index Size in GB"= round(currentDBSizeMB/1000,2)
 | table Index "Earliest Event Time" "Latest Event Time" "Current Date" "Index Size in GB"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Oct 2017 21:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38558#M7124</guid>
      <dc:creator>andygerber</dc:creator>
      <dc:date>2017-10-27T21:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: index start date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38559#M7125</link>
      <description>&lt;P&gt;Hello Andygerber,&lt;/P&gt;

&lt;P&gt;I just believe you switched the Earliest with the latest in your search , Am i right ?&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 11:39:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38559#M7125</guid>
      <dc:creator>myacoub</dc:creator>
      <dc:date>2019-01-21T11:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: index start date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38560#M7126</link>
      <description>&lt;P&gt;Yes, I believe so... using a different account, or I would edit it.  Corrected below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rest /services/data/indexes 
  | search totalEventCount &amp;gt; 0 
  | eval now=strftime(now(), "%Y-%m-%d")
  | stats first(minTime) as "Earliest Event Time" first(maxTime) as "Latest Event Time" first(now) as "Current Date" first(currentDBSizeMB) as currentDBSizeMB by title 
  | rename title as "Index" | sort - currentDBSizeMB
  | eval "Index Size in GB"= round(currentDBSizeMB/1000,2)
  | table Index "Earliest Event Time" "Latest Event Time" "Current Date" "Index Size in GB"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:10:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-start-date/m-p/38560#M7126</guid>
      <dc:creator>andygerberkp</dc:creator>
      <dc:date>2019-01-21T15:10:32Z</dc:date>
    </item>
  </channel>
</rss>

