<?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: Need Help Restricting Results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-Restricting-Results/m-p/44859#M10601</link>
    <description>&lt;P&gt;Currently four, but there are likely to be more as we add new customers.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Aug 2012 19:17:38 GMT</pubDate>
    <dc:creator>menkurau</dc:creator>
    <dc:date>2012-08-27T19:17:38Z</dc:date>
    <item>
      <title>Need Help Restricting Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-Restricting-Results/m-p/44857#M10599</link>
      <description>&lt;P&gt;I am trying to provide our data center customers a view of their firewall permits and denies (based on cisco fwsm logs).  The requirements I have been given are to restrict what a customer can search for to either events for their source or destination and by period of time the own the IP.  Also, this cannot be a separate app.  I need to figure out a way to restrict certain events to certain users based on the source and destination IP and time.&lt;/P&gt;

&lt;P&gt;I have a lookup file that specifies a subnet for CIDR matching and has columns for mapping ownership to a customer by IP.  The lookup also has a column to reference a date code for both the source and destination IP so I can exclude results by event time.&lt;/P&gt;

&lt;P&gt;I have a search that fulfills the requirements, however, I can't figure out a way to restrict results by role.  It is a pipeline search, so I can't create an eventtype.  My understanding of summary indicies preclude their use.  My thinking is the only way to do it is to create an app, but the requirements specify no.  &lt;/P&gt;

&lt;P&gt;Here is an example of one of the searches:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;owner_src="FAC" OR owner_dst="FAC" type="Built" OR type="Deny" 
| convert timeformat="%m%d%y" ctime(_time) as c_time 
| eval owner_valid_src = if(c_time &amp;gt;= date_filter_src, "Yes", "No") 
| eval owner_valid_dst = if(c_time &amp;gt;= date_filter_dst, "Yes", "No") 
| search owner_valid_src="yes" OR owner_valid_dst="yes"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Aug 2012 18:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-Restricting-Results/m-p/44857#M10599</guid>
      <dc:creator>menkurau</dc:creator>
      <dc:date>2012-08-27T18:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Restricting Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-Restricting-Results/m-p/44858#M10600</link>
      <description>&lt;P&gt;How many roles will this scale to ?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2012 19:08:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-Restricting-Results/m-p/44858#M10600</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2012-08-27T19:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Restricting Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-Restricting-Results/m-p/44859#M10601</link>
      <description>&lt;P&gt;Currently four, but there are likely to be more as we add new customers.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2012 19:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-Restricting-Results/m-p/44859#M10601</guid>
      <dc:creator>menkurau</dc:creator>
      <dc:date>2012-08-27T19:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Restricting Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-Restricting-Results/m-p/44860#M10602</link>
      <description>&lt;P&gt;I think you want to convert your lookup to be an &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources#Set_up_a_time-based_fields_lookup"&gt;automatic time based lookup&lt;/A&gt;, and then use the search filter in the role for each customer on the &lt;CODE&gt;owner_src&lt;/CODE&gt; and &lt;CODE&gt;owner_dst&lt;/CODE&gt; fields. That way you do not need the convert, evals and 2nd search.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 09:44:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-Restricting-Results/m-p/44860#M10602</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-09-05T09:44:08Z</dc:date>
    </item>
  </channel>
</rss>

