<?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 it possibl to get a list of available indices ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58971#M14524</link>
    <description>&lt;P&gt;You could use dbinspect to get a list of indexes the user has access to&lt;/P&gt;

&lt;P&gt;|dbinspect index=*&lt;/P&gt;</description>
    <pubDate>Tue, 22 May 2018 23:17:58 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2018-05-22T23:17:58Z</dc:date>
    <item>
      <title>Is it possible to get a list of available indices?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58945#M14498</link>
      <description>&lt;P&gt;I could then populate a dropdown list with indices &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Somehow I could not get this done, would be cool if somebody could help me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would prefer some in-splunk possibilities compared to file-parsing or CLI foo btw out of obv. reasons.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 19:33:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58945#M14498</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2021-01-11T19:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58946#M14499</link>
      <description>&lt;P&gt;Have you had a look at the UI Examples app?&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/apps/22333/splunk-ui-examples-app-for-41"&gt;http://splunk-base.splunk.com/apps/22333/splunk-ui-examples-app-for-41&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;That has some good drop down search examples, so you could just build a drop down form dashboard where the drop down is populated with the results of something like index=* and choose the index fields to get the data.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 13:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58946#M14499</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-01-26T13:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58947#M14500</link>
      <description>&lt;P&gt;Thanks, sometimes you just overlook the obvious &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 13:53:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58947#M14500</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2012-01-26T13:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58948#M14501</link>
      <description>&lt;P&gt;The most efficient way to get accurate results is probably:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventcount summarize=false index=* | dedup index | fields index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just searching for &lt;CODE&gt;index=*&lt;/CODE&gt; could be inefficient and wrong, e.g., if one index contains billions of events in the last hour, but another's most recent data is back just before midnight, you would either miss out on the second index, or have to retrieve all billions of events just to discover it.&lt;/P&gt;

&lt;P&gt;Update: &lt;/P&gt;

&lt;P&gt;Corrected to include &lt;CODE&gt;index=*&lt;/CODE&gt;.&lt;BR /&gt;
If you want to include internal indexes, you can use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventcount summarize=false index=* index=_* | dedup index | fields index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2012 15:04:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58948#M14501</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-01-26T15:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58949#M14502</link>
      <description>&lt;P&gt;This does not give me a list of all available indices, just the ones I set up to be searched by default or am I missing something ?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 08:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58949#M14502</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2012-01-27T08:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58950#M14503</link>
      <description>&lt;P&gt;Gkanapathy is quite right, my search would be rubbish! @flo_cognosec, the search you need is;&lt;BR /&gt;
| eventcount summarize=false index=* | dedup index | fields index&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 12:06:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58950#M14503</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-01-27T12:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58951#M14504</link>
      <description>&lt;P&gt;Sorry, my mistake.  You need to add 'index=*' as an argument to the summarize command, as draineh did.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 15:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58951#M14504</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-01-27T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58952#M14505</link>
      <description>&lt;P&gt;This will not work. Such a search will only return events indexed locally, and therefore you have the potential to miss a bunch of indexes. &lt;/P&gt;

&lt;P&gt;index=* | dedup index | fields index &lt;/P&gt;

&lt;P&gt;run over all time&lt;/P&gt;

&lt;P&gt;Would be better (in terms of getting all a complete list of indexes), but is not very efficient, it will only show indexes the person running the search has access to.&lt;/P&gt;

&lt;P&gt;I don't believe Splunk has a reliable way to get a list of all current indexes through the web GUI (even the management section can be lacking in certain cases).&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 19:00:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58952#M14505</guid>
      <dc:creator>rtadams89</dc:creator>
      <dc:date>2012-01-27T19:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58953#M14506</link>
      <description>&lt;P&gt;It is not correct that you will only see local indexes. the &lt;CODE&gt;eventcount&lt;/CODE&gt; command will return all indexes that can be searched, local or remote distributed ones. But yes, it will only list ones that are accessible to the running user. It is true that Splunk's UI, API, and Management GUI does not provide a way to bypass security restrictions to allow people to list indexes they do not have access to.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 20:32:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58953#M14506</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-01-27T20:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58954#M14507</link>
      <description>&lt;P&gt;I now hardcoded the index names in a StaticSelect for performance reasons ^^ Technically not pretty but efficient and solves my problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2012 12:17:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58954#M14507</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2012-02-02T12:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58955#M14508</link>
      <description>&lt;P&gt;is it possible to exclude some indexes of the list&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2012 14:23:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58955#M14508</guid>
      <dc:creator>manikdham</dc:creator>
      <dc:date>2012-10-04T14:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58956#M14509</link>
      <description>&lt;P&gt;$SPLUNK_HOME/bin/splunk list index&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58956#M14509</guid>
      <dc:creator>kchen_splunk</dc:creator>
      <dc:date>2014-03-05T12:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58957#M14510</link>
      <description>&lt;P&gt;and another one&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| REST /services/data/indexes | table title
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58957#M14510</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-03-05T12:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58958#M14511</link>
      <description>&lt;P&gt;I like this !&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2014 13:05:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58958#M14511</guid>
      <dc:creator>kchen_splunk</dc:creator>
      <dc:date>2014-03-05T13:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58959#M14512</link>
      <description>&lt;P&gt;best answer in my opinion&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2014 15:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58959#M14512</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2014-10-17T15:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58960#M14513</link>
      <description>&lt;P&gt;Sweet solution!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 15:05:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58960#M14513</guid>
      <dc:creator>NMSOpsAtTMo</dc:creator>
      <dc:date>2015-04-01T15:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58961#M14514</link>
      <description>&lt;P&gt;Brand new stupid user here, my results:&lt;/P&gt;

&lt;P&gt;1st suggestion:&lt;BR /&gt;
| eventcount summarize=false index=* index=_* | dedup index | fields index&lt;BR /&gt;&lt;BR /&gt;
= error in eventcount command: this command is not supported in a real-time search&lt;/P&gt;

&lt;P&gt;index=* | dedup index | fields index &lt;BR /&gt;
This works, but doesn't give you a nice list, rather provides tons of individual lines of data&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/bin/splunk list index&lt;BR /&gt;
No results at all.  &lt;/P&gt;

&lt;P&gt;So for me, again newbie here none of these worked for me.. &lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2015 21:40:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58961#M14514</guid>
      <dc:creator>mendesjo</dc:creator>
      <dc:date>2015-09-02T21:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58962#M14515</link>
      <description>&lt;P&gt;Check out MuS's answer.  It's the best one for this, and works just fine.  &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/39370/is-it-possibl-to-get-a-list-of-available-indices.html#answer-125545"&gt;https://answers.splunk.com/answers/39370/is-it-possibl-to-get-a-list-of-available-indices.html#answer-125545&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2015 16:42:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58962#M14515</guid>
      <dc:creator>emiller42</dc:creator>
      <dc:date>2015-10-19T16:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58963#M14516</link>
      <description>&lt;P&gt;very nice  indeed!   thank you .. here is a slight modification.&lt;/P&gt;

&lt;P&gt;| REST /services/data/indexes | dedup title | sort title | table title&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 14:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58963#M14516</guid>
      <dc:creator>wsnyder2</dc:creator>
      <dc:date>2015-10-26T14:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possibl to get a list of available indices ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58964#M14517</link>
      <description>&lt;P&gt;I downvoted this post because the rest answer is the better one. it is more efficient and will include all indices, even empty ones.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 00:52:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-get-a-list-of-available-indices/m-p/58964#M14517</guid>
      <dc:creator>steven_swor</dc:creator>
      <dc:date>2015-11-25T00:52:41Z</dc:date>
    </item>
  </channel>
</rss>

