<?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: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267984#M80619</link>
    <description>&lt;P&gt;Give a shot hope fully it solves your query&lt;/P&gt;

&lt;P&gt;index=* | eval latest=now()|table index latest converttime |eval converttime=strftime(latest,"%m/%d/%y %H:%M:%S") |dedup index latest&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2016 13:32:53 GMT</pubDate>
    <dc:creator>splunkton</dc:creator>
    <dc:date>2016-05-24T13:32:53Z</dc:date>
    <item>
      <title>Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267976#M80611</link>
      <description>&lt;P&gt;Is there a fast way to search all indexes to list just the index name and the time/date of the last event or update?&lt;BR /&gt;
My searches are taking entirely too long. I tried an 'eventcount' search which runs fast, but it only provides sourcetype names and not the index names.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 10:28:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267976#M80611</guid>
      <dc:creator>jwleppert</dc:creator>
      <dc:date>2016-05-24T10:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267977#M80612</link>
      <description>&lt;P&gt;Does it have to be a query?  The Settings-&amp;gt;Indexes screen shows the information you seek.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 13:05:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267977#M80612</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-05-24T13:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267978#M80613</link>
      <description>&lt;P&gt;You should be able to use a rest command to get the results:&lt;/P&gt;

&lt;P&gt;|rest /services/data/indexes | table title&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 13:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267978#M80613</guid>
      <dc:creator>sjohnson_splunk</dc:creator>
      <dc:date>2016-05-24T13:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267979#M80614</link>
      <description>&lt;P&gt;that doesn't give the time/date of the last event &lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 13:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267979#M80614</guid>
      <dc:creator>jwleppert</dc:creator>
      <dc:date>2016-05-24T13:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267980#M80615</link>
      <description>&lt;P&gt;This should get you what you need:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* 
| stats latest(_time) as latestTime by index
| eval latestTime=strftime(latestTime,"%x %X")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 May 2016 13:23:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267980#M80615</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2016-05-24T13:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267981#M80616</link>
      <description>&lt;P&gt;This does:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /services/data/indexes | table title updated
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 May 2016 13:27:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267981#M80616</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-05-24T13:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267982#M80617</link>
      <description>&lt;P&gt;That looks to work but it runs too slow.  Any query I run starting with Index=*  runs too slow&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 13:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267982#M80617</guid>
      <dc:creator>jwleppert</dc:creator>
      <dc:date>2016-05-24T13:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267983#M80618</link>
      <description>&lt;P&gt;|rest /services/data/indexes | table title updated&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;this gives duplicate index names&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 24 May 2016 13:31:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267983#M80618</guid>
      <dc:creator>jwleppert</dc:creator>
      <dc:date>2016-05-24T13:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267984#M80619</link>
      <description>&lt;P&gt;Give a shot hope fully it solves your query&lt;/P&gt;

&lt;P&gt;index=* | eval latest=now()|table index latest converttime |eval converttime=strftime(latest,"%m/%d/%y %H:%M:%S") |dedup index latest&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 13:32:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267984#M80619</guid>
      <dc:creator>splunkton</dc:creator>
      <dc:date>2016-05-24T13:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267985#M80620</link>
      <description>&lt;P&gt;That looks to work but it runs too slow. Any query I run starting with Index=* runs too slow&lt;BR /&gt;
I was hoping something faster using dbinspect or tstats&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 13:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267985#M80620</guid>
      <dc:creator>jwleppert</dc:creator>
      <dc:date>2016-05-24T13:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267986#M80621</link>
      <description>&lt;P&gt;Of course, it does.  Your indexes reside on multiple indexers with different update times.  If you don't want duplicates you have a couple of options.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; |rest /services/data/indexes | dedup title | table title updated

 |rest /services/data/indexes | stats first(updated) by title
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 May 2016 13:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267986#M80621</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-05-24T13:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267987#M80622</link>
      <description>&lt;P&gt;This might be faster:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventcount summarize=false index=* index=_* 
| dedup index | fields index  | map maxsearches=100 search="|metadata type=sourcetypes index=\"$index$\"
| eval index=\"$index$\"" | eval latestTime=strftime(lastTime,"%x %X") | table latestTime index | stats max(latestTime) by index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 May 2016 13:43:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267987#M80622</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2016-05-24T13:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267988#M80623</link>
      <description>&lt;P&gt;try this &lt;/P&gt;

&lt;P&gt;| tstats latest(_time) as latest by index  |eval converttime=strftime(latest,"%m/%d/%y %H:%M:%S")|fields index converttime&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 13:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267988#M80623</guid>
      <dc:creator>splunkton</dc:creator>
      <dc:date>2016-05-24T13:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267989#M80624</link>
      <description>&lt;P&gt;That runs quick, thx!&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 13:44:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267989#M80624</guid>
      <dc:creator>jwleppert</dc:creator>
      <dc:date>2016-05-24T13:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a fast way to search all indexes to list just the index names and the date/time of the last event or update?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267990#M80625</link>
      <description>&lt;P&gt;Error in 'map': Did not find value for required attribute 'index'. &lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 13:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-fast-way-to-search-all-indexes-to-list-just-the-index/m-p/267990#M80625</guid>
      <dc:creator>jwleppert</dc:creator>
      <dc:date>2016-05-24T13:47:25Z</dc:date>
    </item>
  </channel>
</rss>

