<?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 search or other way to easily list the indexes I am permissioned to search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113603#M29924</link>
    <description>&lt;P&gt;I'll do one better, I do this everyday, so when I have to check I can just &lt;CODE&gt;"|inputlookup user_authorizations.csv | search username=$USER"&lt;/CODE&gt;. This might not work if you don't have permissions on the endpoints.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rest /services/authentication/users&lt;BR /&gt;
| rename title AS username roles AS role&lt;BR /&gt;
| mvexpand role&lt;BR /&gt;
| fields realname username role&lt;BR /&gt;
| join type=outer role [&lt;BR /&gt;
  rest /services/authorization/roles&lt;BR /&gt;
  | rename title AS role | eval indexes=mvjoin(srchIndexesAllowed," ; ")&lt;BR /&gt;
  | fields role indexes]&lt;BR /&gt;
| table realname username role indexes | outputlookup user_authorizations.csv&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2013 13:37:47 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2013-10-24T13:37:47Z</dc:date>
    <item>
      <title>Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113601#M29922</link>
      <description>&lt;P&gt;I have a multiple index system where some roles can search some indexes and other roles other indexes.  My personal user has several roles with access to multiple indexes. There are enough of them that I sometimes want to review the list for reference.&lt;/P&gt;

&lt;P&gt;Is there a search or some other nice way to the list of indexes I am allowed to search?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:11:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113601#M29922</guid>
      <dc:creator>juniormint</dc:creator>
      <dc:date>2013-10-24T13:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113602#M29923</link>
      <description>&lt;P&gt;I guess that going into the manager is not the answer you want. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/admin/roles | table title, srchIndexesAllowed | rename title as role
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;could be what you want? I don't think very restricted roles can perform this search, but the ordinary &lt;CODE&gt;user&lt;/CODE&gt; role can find out it's permissions.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113602#M29923</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-24T13:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113603#M29924</link>
      <description>&lt;P&gt;I'll do one better, I do this everyday, so when I have to check I can just &lt;CODE&gt;"|inputlookup user_authorizations.csv | search username=$USER"&lt;/CODE&gt;. This might not work if you don't have permissions on the endpoints.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rest /services/authentication/users&lt;BR /&gt;
| rename title AS username roles AS role&lt;BR /&gt;
| mvexpand role&lt;BR /&gt;
| fields realname username role&lt;BR /&gt;
| join type=outer role [&lt;BR /&gt;
  rest /services/authorization/roles&lt;BR /&gt;
  | rename title AS role | eval indexes=mvjoin(srchIndexesAllowed," ; ")&lt;BR /&gt;
  | fields role indexes]&lt;BR /&gt;
| table realname username role indexes | outputlookup user_authorizations.csv&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 13:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113603#M29924</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-24T13:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113604#M29925</link>
      <description>&lt;P&gt;For a specific user, the easiest and fastest is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventcount summarize=f index=_* index=* | stats count by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Every user can run this from search, so you don't need access to rest. On the other hand, you can't get this information for &lt;EM&gt;another&lt;/EM&gt; user using this method. It will include indexes that are empty as well.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 14:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113604#M29925</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-10-24T14:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113605#M29926</link>
      <description>&lt;P&gt;How do you get this search to work?&lt;BR /&gt;
I'm running Splunk 5.0.2 as admin and when I run this search it yields No Results.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 23:42:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113605#M29926</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-10-24T23:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113606#M29927</link>
      <description>&lt;P&gt;All of these answers are pretty useless without permissions some other Splunk magic.&lt;BR /&gt;&lt;BR /&gt;
This search will give you a list of indexes you have permissions to search, but it will take a few minutes to run, and will only capture indexes that were active in the time frame of the search.&lt;BR /&gt;
The best part is, it will for Anyone with permission to Search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="*" OR index="_*" | dedup index | table index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Oct 2013 23:48:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113606#M29927</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-10-24T23:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113607#M29928</link>
      <description>&lt;P&gt;I enter it exactly as is in the search bar. It has worked for me in every version from 4.1 or so till now.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2013 00:01:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113607#M29928</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-10-25T00:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113608#M29929</link>
      <description>&lt;P&gt;And just to be clear, the &lt;CODE&gt;eventcount&lt;/CODE&gt; command does not require any special permissions. It is the same command that was used on the Splunk 4.x and 5.x pages to display the total numbers of events on the search app overview page.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2013 00:05:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113608#M29929</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-10-25T00:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113609#M29930</link>
      <description>&lt;P&gt;Thanks, I guess I figured the pipe in the beginning was assuming a preceding string.  It was much faster than my search.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2013 00:05:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113609#M29930</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-10-25T00:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113610#M29931</link>
      <description>&lt;P&gt;please accept the answer that has answered your question most completely.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2013 11:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113610#M29931</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-25T11:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113611#M29932</link>
      <description>&lt;P&gt;juniormint. you have a few different answers to choose from. Did either one work especially well for you?&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 21:15:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113611#M29932</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-28T21:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113612#M29933</link>
      <description>&lt;P&gt;For my purposes this seems like the simplest and it is very quick to return.  Thanks! @gkanapathy&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 01:50:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113612#M29933</guid>
      <dc:creator>juniormint</dc:creator>
      <dc:date>2013-11-05T01:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a search or other way to easily list the indexes I am permissioned to search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113613#M29934</link>
      <description>&lt;P&gt;@gkanapathy gave what seems to me the simplest, performant answer, so thanks!  Love all the other answers too with diff takes on it.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 01:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-search-or-other-way-to-easily-list-the-indexes-I-am/m-p/113613#M29934</guid>
      <dc:creator>juniormint</dc:creator>
      <dc:date>2013-11-05T01:53:06Z</dc:date>
    </item>
  </channel>
</rss>

