<?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: Lookup table question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70537#M17646</link>
    <description>&lt;P&gt;Thank you !!!. But all of this i can use in the Lookup spreadsheet?&lt;/P&gt;

&lt;P&gt;where clientip is the input filed and WhitelistIPs is the output field..&lt;/P&gt;

&lt;P&gt;so the data would be like this?&lt;BR /&gt;
WhitelistIPs    clientip&lt;BR /&gt;
Company XXX     cidrmatch("65.222.163.0/27",clientip) &lt;BR /&gt;
Company YYYY    63.158.163.8&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2013 18:40:06 GMT</pubDate>
    <dc:creator>xvxt006</dc:creator>
    <dc:date>2013-06-20T18:40:06Z</dc:date>
    <item>
      <title>Lookup table question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70535#M17644</link>
      <description>&lt;P&gt;Hi, i have a lookup table where i have the below values&lt;/P&gt;

&lt;P&gt;My questions are:&lt;BR /&gt;
When i specify CIDR block would it work? or do i need to specify each ip?&lt;BR /&gt;
we have set of internal ips which you can see in the below table. I have specified &lt;CODE&gt;.*&lt;/CODE&gt; in the IPs. For example &lt;CODE&gt;10.*&lt;/CODE&gt;.Would it consider all the ips that start with 10.&lt;BR /&gt;
is it possible to specify a NOT logic? meaning NOT all the internal requests as external. so it would be &lt;CODE&gt;^10.*&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WhitelistIPs    clientip
Company XXX 63.122.163.0/27 
Company YYYY    63.158.163.8
Company YYYY    64.274.165.6 
Company YYYY    38.172.74.18 
Company YYYY    12.298.108.202
Company YYYY    67.247.113.226
Company ZZZZ    74.189.118.39
Company ZZZZ    74.129.118.40
Internal    10.* 
Internal    167.115.*
Internal    192.168.*
Internal    63.85.20.233
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Jun 2013 16:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70535#M17644</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2013-06-20T16:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup table question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70536#M17645</link>
      <description>&lt;P&gt;You can use &lt;CODE&gt;cidrmatch("65.222.163.0/27",clientip)&lt;/CODE&gt; for exact matches. For something which starts with 10, you can use match(). Example : &lt;CODE&gt;match(Internal, "10.\d{1,3}.\d{1,3}.\d{1,3}")&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;You can use NOT logic too. &lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 18:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70536#M17645</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2013-06-20T18:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup table question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70537#M17646</link>
      <description>&lt;P&gt;Thank you !!!. But all of this i can use in the Lookup spreadsheet?&lt;/P&gt;

&lt;P&gt;where clientip is the input filed and WhitelistIPs is the output field..&lt;/P&gt;

&lt;P&gt;so the data would be like this?&lt;BR /&gt;
WhitelistIPs    clientip&lt;BR /&gt;
Company XXX     cidrmatch("65.222.163.0/27",clientip) &lt;BR /&gt;
Company YYYY    63.158.163.8&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 18:40:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70537#M17646</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2013-06-20T18:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup table question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70538#M17647</link>
      <description>&lt;P&gt;It will depend. I guess you would need to set up your loookup in a way that it can give the clientip as output along with WhitelistIps. So for clientip as Input, both Clientip and WhitelistIp's need to be output. Then you can use the above functions and play around.&lt;/P&gt;

&lt;P&gt;Do accept the answer if it works for you. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 22:11:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70538#M17647</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2013-06-20T22:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup table question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70539#M17648</link>
      <description>&lt;P&gt;You can't both have wildcard matching and cidr - it has to be one of them (and you need to specify that in &lt;CODE&gt;transforms.conf&lt;/CODE&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 09:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70539#M17648</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-06-21T09:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup table question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70540#M17649</link>
      <description>&lt;P&gt;Yup that's right.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 14:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-table-question/m-p/70540#M17649</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2013-06-21T14:22:11Z</dc:date>
    </item>
  </channel>
</rss>

