<?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 Oldest and Latest  Logs per Index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Oldest-and-Latest-Logs-per-Index/m-p/104039#M183125</link>
    <description>&lt;P&gt;I would like to see the list of all the Indexes along with the Earliest and Latest Time stamp for the most oldest log and most earliest log stored in that index.&lt;/P&gt;

&lt;P&gt;I used following qeuery but i take to much time to provide the resluts, is their any other method to see this information as quick as possible.&lt;/P&gt;

&lt;P&gt;index=* | stats first(_time) as latest  last(_time) as earliest by index | convert timeformat="%Y-%m-%d %H:%M:%S" ctime(earliest) ctime(latest)&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:35:35 GMT</pubDate>
    <dc:creator>ssingh5</dc:creator>
    <dc:date>2020-09-28T11:35:35Z</dc:date>
    <item>
      <title>Oldest and Latest  Logs per Index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Oldest-and-Latest-Logs-per-Index/m-p/104039#M183125</link>
      <description>&lt;P&gt;I would like to see the list of all the Indexes along with the Earliest and Latest Time stamp for the most oldest log and most earliest log stored in that index.&lt;/P&gt;

&lt;P&gt;I used following qeuery but i take to much time to provide the resluts, is their any other method to see this information as quick as possible.&lt;/P&gt;

&lt;P&gt;index=* | stats first(_time) as latest  last(_time) as earliest by index | convert timeformat="%Y-%m-%d %H:%M:%S" ctime(earliest) ctime(latest)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:35:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Oldest-and-Latest-Logs-per-Index/m-p/104039#M183125</guid>
      <dc:creator>ssingh5</dc:creator>
      <dc:date>2020-09-28T11:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Oldest and Latest  Logs per Index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Oldest-and-Latest-Logs-per-Index/m-p/104040#M183126</link>
      <description>&lt;P&gt;You could probably find a metadata search to do what you want:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sourcetypes index=main| stats min(firstTime) AS begin max(lastTime) AS end  | eval begin = strftime(begin, "%Y-%m-%d %H:%M:%S") | eval end = strftime(end, "%Y-%m-%d %H:%M:%S")  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For more information, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Metadata"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Metadata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2012 12:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Oldest-and-Latest-Logs-per-Index/m-p/104040#M183126</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-03-29T12:00:09Z</dc:date>
    </item>
  </channel>
</rss>

