<?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 List of newly created indexes in splunk in the last 30 days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/List-of-newly-created-indexes-in-splunk-in-the-last-30-days/m-p/481882#M140398</link>
    <description>&lt;P&gt;I need a list of indexes that are newly created in the last 30 days and need the creation date of those indexes.&lt;/P&gt;

&lt;P&gt;I have used this query : &lt;/P&gt;

&lt;P&gt;| rest /services/data/indexes &lt;BR /&gt;
 | search totalEventCount &amp;gt; 0 &lt;BR /&gt;
 | eval now=strftime(now(), "%Y-%m-%d")&lt;BR /&gt;
 | stats first(minTime) as first_date first(now) as now first(currentDBSizeMB) as currentDBSizeMB by title&lt;BR /&gt;
 | eval comparison_date=now()-30*86400 | sort - first_date  | eval first_date=strptime(first_date,"%Y-%m-%dT%H:%M:%S.%6N") | eval status=if(first_date&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:07:18 GMT</pubDate>
    <dc:creator>sumaitasiddiky</dc:creator>
    <dc:date>2020-09-30T05:07:18Z</dc:date>
    <item>
      <title>List of newly created indexes in splunk in the last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-newly-created-indexes-in-splunk-in-the-last-30-days/m-p/481882#M140398</link>
      <description>&lt;P&gt;I need a list of indexes that are newly created in the last 30 days and need the creation date of those indexes.&lt;/P&gt;

&lt;P&gt;I have used this query : &lt;/P&gt;

&lt;P&gt;| rest /services/data/indexes &lt;BR /&gt;
 | search totalEventCount &amp;gt; 0 &lt;BR /&gt;
 | eval now=strftime(now(), "%Y-%m-%d")&lt;BR /&gt;
 | stats first(minTime) as first_date first(now) as now first(currentDBSizeMB) as currentDBSizeMB by title&lt;BR /&gt;
 | eval comparison_date=now()-30*86400 | sort - first_date  | eval first_date=strptime(first_date,"%Y-%m-%dT%H:%M:%S.%6N") | eval status=if(first_date&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-newly-created-indexes-in-splunk-in-the-last-30-days/m-p/481882#M140398</guid>
      <dc:creator>sumaitasiddiky</dc:creator>
      <dc:date>2020-09-30T05:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: List of newly created indexes in splunk in the last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-newly-created-indexes-in-splunk-in-the-last-30-days/m-p/481883#M140399</link>
      <description>&lt;P&gt;What about this search query?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action=indexes_edit operation=create
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Apr 2020 11:26:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-newly-created-indexes-in-splunk-in-the-last-30-days/m-p/481883#M140399</guid>
      <dc:creator>MaverickT</dc:creator>
      <dc:date>2020-04-22T11:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: List of newly created indexes in splunk in the last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-newly-created-indexes-in-splunk-in-the-last-30-days/m-p/481884#M140400</link>
      <description>&lt;P&gt;This should only tell you about indexes created via API / UI, not about indexes created via conf files (most common case in real-world environments with a separate indexing tier). Those don't have an easily accessible creation date.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:11:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-newly-created-indexes-in-splunk-in-the-last-30-days/m-p/481884#M140400</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-04-22T14:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: List of newly created indexes in splunk in the last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-newly-created-indexes-in-splunk-in-the-last-30-days/m-p/481885#M140401</link>
      <description>&lt;P&gt;You could maintain such a list in a lookup, amend the lookup with a scheduled search using that REST call every day to add a creation date to a first-seen lookup, and then use that lookup to filter for last 30 days or whatever time range you need.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/maintaining-state-of-the-union.html"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/maintaining-state-of-the-union.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-newly-created-indexes-in-splunk-in-the-last-30-days/m-p/481885#M140401</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-04-22T14:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: List of newly created indexes in splunk in the last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-newly-created-indexes-in-splunk-in-the-last-30-days/m-p/481886#M140402</link>
      <description>&lt;P&gt;I believe this problem has wider ramifications. Please have a look at Splunk Ideas, for a proposal to integrate Splunk with Source Code Control: &lt;A href="https://ideas.splunk.com/ideas/E-I-7"&gt;https://ideas.splunk.com/ideas/E-I-7&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This would address this problem and many others. SCC would maintain all your modification dates and revision history. You can furthermore splunk a git repo as well as the git metadata, to report both the available facts and the current code.&lt;/P&gt;

&lt;P&gt;Because Splunk supports so many disparate ways to update your configuration--which is code when it comes right down to it--this has always been a problem. In the field there are many ingenious and occasionally really scary home-made solutions, which you have to have, or mature Splunk installations sooner or later become unmanageable.&lt;/P&gt;

&lt;P&gt;If you support the notion of source code control integration for Splunk, please vote for the idea so it gets more traction.&lt;BR /&gt;
Charles&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 00:02:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-newly-created-indexes-in-splunk-in-the-last-30-days/m-p/481886#M140402</guid>
      <dc:creator>charlesmeo</dc:creator>
      <dc:date>2020-04-23T00:02:34Z</dc:date>
    </item>
  </channel>
</rss>

