<?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: Using a lookup table to filter out traffic header for known networks - using CIRD in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Using-a-lookup-table-to-filter-out-traffic-header-for-known/m-p/58987#M11634</link>
    <description>&lt;P&gt;This is related, and may be useful -- &lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/57094/join-ip-with-a-subnet"&gt;http://splunk-base.splunk.com/answers/57094/join-ip-with-a-subnet&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, you might be able to do some of this in this manner:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=firewall action=drop NOT 
[ | inputlookup known_networks.csv | fields CIDR ] 
| stats dc(src) by dst, proto, dst_port
| sort dc(src) desc
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 10 Jun 2013 21:01:31 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2013-06-10T21:01:31Z</dc:date>
    <item>
      <title>Using a lookup table to filter out traffic header for known networks - using CIRD</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-a-lookup-table-to-filter-out-traffic-header-for-known/m-p/58986#M11633</link>
      <description>&lt;P&gt;Have not had luck with this yet.  I am looking at all of my "blocked" traffic in the firewall logs and hope to weed out the traffic heading for "known" network to look at the stuff that is "unknown".  I hope to udpate a lookup table that will be my "filter" list.  Here is an example of what is in there:&lt;/P&gt;

&lt;P&gt;CIDR, Net_Name&lt;BR /&gt;
10.0.0.0/8,Internal&lt;BR /&gt;
172.16.0.0/12,Internal&lt;BR /&gt;
192.168.0.0/16,Internal&lt;BR /&gt;
169.254.0.0/16,Internal&lt;BR /&gt;
74.125.0.0/16, 3rd_Party_Trusted-Google&lt;BR /&gt;
65.52.0.0/14, 3rd_Party_Trusted-Microsoft&lt;BR /&gt;
75.75.72.0/21, Consumer_ISP-Comcast&lt;/P&gt;

&lt;P&gt;Basically I would like to say&lt;/P&gt;

&lt;P&gt;sourcetype=firewall action=drop | if "dst" is in any CIDR then remove from search | stats dc(src) by dst, proto, dst_port | sort dc(src) desc&lt;/P&gt;

&lt;P&gt;The bit in the middle is what I have issue with.  I have seen the format and it looks to have OR's between each value, not sure if you can do that for a dst!=.&lt;/P&gt;

&lt;P&gt;| inputlookup known_networks.csv | fields CIDR | format&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;( ( CIDR="10.0.0.0/8" ) OR ( CIDR="172.16.0.0/12" ) OR ( CIDR="192.168.0.0/16" ) OR ( CIDR="169.254.0.0/16" ) OR ( CIDR="127.0.0.0/8" ) OR .....
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-a-lookup-table-to-filter-out-traffic-header-for-known/m-p/58986#M11633</guid>
      <dc:creator>splunkroberts</dc:creator>
      <dc:date>2020-09-28T14:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using a lookup table to filter out traffic header for known networks - using CIRD</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-a-lookup-table-to-filter-out-traffic-header-for-known/m-p/58987#M11634</link>
      <description>&lt;P&gt;This is related, and may be useful -- &lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/57094/join-ip-with-a-subnet"&gt;http://splunk-base.splunk.com/answers/57094/join-ip-with-a-subnet&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, you might be able to do some of this in this manner:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=firewall action=drop NOT 
[ | inputlookup known_networks.csv | fields CIDR ] 
| stats dc(src) by dst, proto, dst_port
| sort dc(src) desc
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Jun 2013 21:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-a-lookup-table-to-filter-out-traffic-header-for-known/m-p/58987#M11634</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2013-06-10T21:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using a lookup table to filter out traffic header for known networks - using CIRD</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-a-lookup-table-to-filter-out-traffic-header-for-known/m-p/58988#M11635</link>
      <description>&lt;P&gt;Have a look at lookup match_type, specifically change it to cidr &lt;/P&gt;

&lt;P&gt;Then once you have matched it you could use a where clause to filter out traffic&lt;/P&gt;

&lt;P&gt;This should help:&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/5916/using-cidr-in-a-lookup-table"&gt;http://splunk-base.splunk.com/answers/5916/using-cidr-in-a-lookup-table&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2013 23:17:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-a-lookup-table-to-filter-out-traffic-header-for-known/m-p/58988#M11635</guid>
      <dc:creator>mbenwell</dc:creator>
      <dc:date>2013-06-10T23:17:13Z</dc:date>
    </item>
  </channel>
</rss>

