<?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 How to restrict a user's search based on a lookup table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-restrict-a-user-s-search-based-on-a-lookup-table/m-p/176241#M50615</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I'm developing an app for use across different teams at my company. We have certain security restrictions about what logs each team can see. So, team A might be permissioned to see every log statement, while team B will only be allowed to see logs related to a certain server.&lt;/P&gt;

&lt;P&gt;I have a lookup table that determines which servers each employee is permissioned to and I'd like to restrict their searches based on this. Does anyone know of a way I can do this?&lt;/P&gt;

&lt;P&gt;Please note that all of these logs are going to the same index. They are all the same type of log, just a different server.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 08 Aug 2014 13:37:12 GMT</pubDate>
    <dc:creator>bruceclarke</dc:creator>
    <dc:date>2014-08-08T13:37:12Z</dc:date>
    <item>
      <title>How to restrict a user's search based on a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-restrict-a-user-s-search-based-on-a-lookup-table/m-p/176241#M50615</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I'm developing an app for use across different teams at my company. We have certain security restrictions about what logs each team can see. So, team A might be permissioned to see every log statement, while team B will only be allowed to see logs related to a certain server.&lt;/P&gt;

&lt;P&gt;I have a lookup table that determines which servers each employee is permissioned to and I'd like to restrict their searches based on this. Does anyone know of a way I can do this?&lt;/P&gt;

&lt;P&gt;Please note that all of these logs are going to the same index. They are all the same type of log, just a different server.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2014 13:37:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-restrict-a-user-s-search-based-on-a-lookup-table/m-p/176241#M50615</guid>
      <dc:creator>bruceclarke</dc:creator>
      <dc:date>2014-08-08T13:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict a user's search based on a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-restrict-a-user-s-search-based-on-a-lookup-table/m-p/176242#M50616</link>
      <description>&lt;P&gt;Create a macro to get the filter to be used for host based on your lookup and then use this macro as search filter in the team's role definition.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2014 14:00:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-restrict-a-user-s-search-based-on-a-lookup-table/m-p/176242#M50616</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-08T14:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict a user's search based on a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-restrict-a-user-s-search-based-on-a-lookup-table/m-p/176243#M50617</link>
      <description>&lt;P&gt;In authorize.conf, there is a setting: srchFilter = &lt;STRING&gt;. This can also be done via the GUI Admin Manager. It takes a string of search to restrict searches. I did a preliminary test, and it worked. In that field, try this:&lt;/STRING&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /services/authentication/current-context | table username | lookup user_auths.csv user AS username OUTPUT host | table host | format "" "(" "OR" ")" "" ""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Replace "user_auths.csv" with your lookup name or filename. Update the "user" field to be whatever is listed in that csv. &lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2014 14:14:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-restrict-a-user-s-search-based-on-a-lookup-table/m-p/176243#M50617</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2014-08-08T14:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict a user's search based on a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-restrict-a-user-s-search-based-on-a-lookup-table/m-p/176244#M50618</link>
      <description>&lt;P&gt;More information on search filters is here &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.2/Security/Addandeditroles#Search_filter_format"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/Security/Addandeditroles#Search_filter_format&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2014 14:20:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-restrict-a-user-s-search-based-on-a-lookup-table/m-p/176244#M50618</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-08-08T14:20:11Z</dc:date>
    </item>
  </channel>
</rss>

