<?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: Search all indexes in app in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518207#M9254</link>
    <description>&lt;P&gt;hI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224768"&gt;@benhooper&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Sorry!&lt;/P&gt;&lt;P&gt;Splunk has an RBAC approach to access, in other words: access grants are managed at Role level and not at App level.&lt;/P&gt;&lt;P&gt;So, You can assign access to an index only to one or more Roles and not to an App.&lt;/P&gt;&lt;P&gt;At the same time, you can grant access to an app to a Role.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 07 Sep 2020 10:55:51 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-09-07T10:55:51Z</dc:date>
    <item>
      <title>Search all indexes in app</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518193#M9253</link>
      <description>&lt;P&gt;Is it possible to search only the indexes assigned to a specific app?&lt;/P&gt;&lt;P&gt;So far, the only recommendation I've been able to find is to restrict user roles but that doesn't work for our usage.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 09:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518193#M9253</guid>
      <dc:creator>benhooper</dc:creator>
      <dc:date>2020-09-07T09:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search all indexes in app</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518207#M9254</link>
      <description>&lt;P&gt;hI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224768"&gt;@benhooper&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Sorry!&lt;/P&gt;&lt;P&gt;Splunk has an RBAC approach to access, in other words: access grants are managed at Role level and not at App level.&lt;/P&gt;&lt;P&gt;So, You can assign access to an index only to one or more Roles and not to an App.&lt;/P&gt;&lt;P&gt;At the same time, you can grant access to an app to a Role.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 10:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518207#M9254</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-07T10:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Search all indexes in app</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518228#M9255</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224768"&gt;@benhooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;said, all access has given an index level by user roles. Quite often indexes are defined on one "generic" app for all systems or even in etc/system/local/indexes.conf.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you could do, is granting access to both app and index to the same user role (group). Just define on&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.3/Admin/Authorizeconf#authorize.conf.example" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.3/Admin/Authorizeconf#authorize.conf.example&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;srchIndexesAllowed = index_a, index_b&lt;/PRE&gt;&lt;P&gt;for role_XX and then meta.local / meta.default same access to the role_XXX for App_XXX.&lt;/P&gt;&lt;P&gt;Be sure that you don't inherit any roles which already have some srchIndexesAllowed defined otherwise that role will get access to those indexes also.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 13:10:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518228#M9255</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-09-07T13:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Search all indexes in app</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518236#M9256</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your input.&lt;/P&gt;&lt;P&gt;The reason I ask is because our analysts will use Splunk to monitor services for various clients (so they'll all need access to all indexes). To allow for that, we we planning to use a structure like this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Service&amp;nbsp; / app #1&lt;UL&gt;&lt;LI&gt;Overview dashboard: Search queries starting with&amp;nbsp;&lt;FONT face="courier new,courier"&gt;index=*&lt;/FONT&gt; ...&lt;/LI&gt;&lt;LI&gt;Client #1 dashboard:&amp;nbsp;Search queries starting with&amp;nbsp;&lt;FONT face="courier new,courier"&gt;index=client1&lt;/FONT&gt; ...&lt;/LI&gt;&lt;LI&gt;Client #2 dashboard:&amp;nbsp;Search queries starting with&amp;nbsp;&lt;FONT face="courier new,courier"&gt;index=client2&lt;/FONT&gt; ...&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Service / app #2&lt;UL&gt;&lt;LI&gt;Overview dashboard: Search queries starting with&amp;nbsp;&lt;FONT face="courier new,courier"&gt;index=*&lt;/FONT&gt; ...&lt;/LI&gt;&lt;LI&gt;Client #1 dashboard:&amp;nbsp;Search queries starting with&amp;nbsp;&lt;FONT face="courier new,courier"&gt;index=client1&lt;/FONT&gt; ...&lt;/LI&gt;&lt;LI&gt;Client #2 dashboard:&amp;nbsp;Search queries starting with&amp;nbsp;&lt;FONT face="courier new,courier"&gt;index=client2&lt;/FONT&gt; ...&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Because the searches aren't restricted to each app / each app's indexes, I guess the results could contain unexpected data.&lt;/P&gt;&lt;P&gt;I suppose we could just change the index names to &lt;FONT face="courier new,courier"&gt;&amp;lt;app name&amp;gt;_&amp;lt;client name&amp;gt;&lt;/FONT&gt; or something and adjust the search queries appropriately but I was hoping for something more dynamic than that.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 13:42:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518236#M9256</guid>
      <dc:creator>benhooper</dc:creator>
      <dc:date>2020-09-07T13:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Search all indexes in app</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518260#M9257</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224768"&gt;@benhooper&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I fear you must create a Role for each Client.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 14:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518260#M9257</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-07T14:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search all indexes in app</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518265#M9258</link>
      <description>&lt;P&gt;Unfortunately if user has more than one role those settings are merged together &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; This means that if you need several separate roles for individual analyst then he/she must have several accounts to splunk.&lt;/P&gt;&lt;P&gt;If it's possible I propose you to use prefix on every index which told to which customer it belongs. Anyhow it's not a good habit to make any queries without telling which index you want to use.&lt;/P&gt;&lt;P&gt;And if this is too late then second option is create macro / event type which contains those indexes which belongs to particular customer. Also lookups can used here. E.g. add own lookups / client or one big which contains client, index and then call those via macro.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 15:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518265#M9258</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-09-07T15:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search all indexes in app</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518473#M9259</link>
      <description>&lt;P&gt;Thanks for the advice.&lt;/P&gt;&lt;P&gt;I found out that index-based searching support partial wildcards so we're going to name indexes&amp;nbsp;&lt;FONT face="courier new,courier"&gt;&amp;lt;clientname&amp;gt;_&amp;lt;appname&amp;gt;&lt;/FONT&gt;&amp;nbsp;and use searches &lt;FONT face="courier new,courier"&gt;index=*_&amp;lt;appname&amp;gt;&lt;/FONT&gt;&amp;nbsp;which seems to work just how we want it.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 15:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518473#M9259</guid>
      <dc:creator>benhooper</dc:creator>
      <dc:date>2020-09-08T15:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Search all indexes in app</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518604#M9260</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224768"&gt;@benhooper&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Good for you.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S. Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 06:25:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Search-all-indexes-in-app/m-p/518604#M9260</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-09T06:25:27Z</dc:date>
    </item>
  </channel>
</rss>

