<?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: match_type = CIDR doesn't seem to work in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/match-type-CIDR-doesn-t-seem-to-work/m-p/83970#M21400</link>
    <description>&lt;P&gt;DOH, let me verify...this is what I get for subnetting with an online calculator rather than doing it by hand...&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2013 16:43:38 GMT</pubDate>
    <dc:creator>ccsfdave</dc:creator>
    <dc:date>2013-07-03T16:43:38Z</dc:date>
    <item>
      <title>match_type = CIDR doesn't seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/match-type-CIDR-doesn-t-seem-to-work/m-p/83967#M21397</link>
      <description>&lt;P&gt;I have the following lookup:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[ipam]&lt;BR /&gt;
filename = ipam.csv&lt;BR /&gt;
match_type = CIDR(src_ip)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[cisco_asa]&lt;BR /&gt;
LOOKUP-ipam = ipam src_ip OUTPUTNEW Dept AS Department&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;ipam.csv&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;src_ip,Dept&lt;BR /&gt;
10.8.1.0/10,Soap&lt;BR /&gt;
10.17.101.0/16,Clean&lt;BR /&gt;
10.17.102.0/15,Clean&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;When I do a search though, much more than what I would expect is being matched (I masked the results, the first is full the second and third are abbreviated for readability) :&lt;/P&gt;

&lt;P&gt;»  7/3/13 7:42:30.000 AM   Jul  3 07:42:30 &lt;STRONG&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/STRONG&gt;.&lt;STRONG&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/STRONG&gt; %ASA-6-305012: Teardown dynamic TCP translation from inside:&lt;STRONG&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/STRONG&gt;.&lt;STRONG&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/STRONG&gt;/&lt;EM&gt;**&lt;/EM&gt; to outside:&lt;STRONG&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/STRONG&gt;.&lt;STRONG&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/STRONG&gt;/&lt;EM&gt;**&lt;/EM&gt; duration 0:00:30&lt;BR /&gt;
host=&lt;STRONG&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/STRONG&gt;.&lt;STRONG&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/STRONG&gt;   Options|  sourcetype=cisco_asa   Options|  source=/var/log/syslog/blah.log   Options|  src_ip=&lt;STRONG&gt;10.35.36.20&lt;/STRONG&gt;   Options|  &lt;STRONG&gt;Department=Soap&lt;/STRONG&gt;   Options&lt;/P&gt;

&lt;P&gt;»  7/3/13 7:42:30.000 AM&lt;BR /&gt;&lt;BR /&gt;
 src_ip=&lt;STRONG&gt;10.15.1.12&lt;/STRONG&gt;   Options|  &lt;STRONG&gt;Department=Soap&lt;/STRONG&gt;   &lt;/P&gt;

&lt;P&gt;»  7/3/13 7:42:30.000 AM&lt;BR /&gt;&lt;BR /&gt;
src_ip=&lt;STRONG&gt;10.17.31.174&lt;/STRONG&gt;   Options|  &lt;STRONG&gt;Department=Soap&lt;/STRONG&gt;   Options|  &lt;STRONG&gt;Department=Clean&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;So as you can see the CIDR matching is not really working well.  The first and second result are incorrect IP ranges for the Soap department and the third entry matches both departments when it should simply match Clean.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:14:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/match-type-CIDR-doesn-t-seem-to-work/m-p/83967#M21397</guid>
      <dc:creator>ccsfdave</dc:creator>
      <dc:date>2020-09-28T14:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: match_type = CIDR doesn't seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/match-type-CIDR-doesn-t-seem-to-work/m-p/83968#M21398</link>
      <description>&lt;P&gt;BTW, the search was very open: sourcetype=cisco_asa Department="*"&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 15:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/match-type-CIDR-doesn-t-seem-to-work/m-p/83968#M21398</guid>
      <dc:creator>ccsfdave</dc:creator>
      <dc:date>2013-07-03T15:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: match_type = CIDR doesn't seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/match-type-CIDR-doesn-t-seem-to-work/m-p/83969#M21399</link>
      <description>&lt;P&gt;Actually, it is working correctly, but I think you are incorrectly specifying your CIDR ranges. For example, &lt;CODE&gt;10.8.1.0/10&lt;/CODE&gt; (which is the same as &lt;CODE&gt;10.0.0.0/10&lt;/CODE&gt;) will match anything in the range &lt;CODE&gt;10.0.0.0&lt;/CODE&gt; thru &lt;CODE&gt;10.63.255.255&lt;/CODE&gt;, which includes your other two ranges as well as your examples. &lt;CODE&gt;10.17.101.0/15&lt;/CODE&gt; (which is the same as &lt;CODE&gt;10.16.0.0/15&lt;/CODE&gt;) includes everything in &lt;CODE&gt;10.16.*.*&lt;/CODE&gt; and &lt;CODE&gt;10.17.*.*&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;My guess (just a guess) is that your ranges should actually all be &lt;CODE&gt;/24&lt;/CODE&gt; ranges. Though of course I don't know your network topology, you are unlikely to want overlapping CIDR ranges for different departments.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 16:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/match-type-CIDR-doesn-t-seem-to-work/m-p/83969#M21399</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-07-03T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: match_type = CIDR doesn't seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/match-type-CIDR-doesn-t-seem-to-work/m-p/83970#M21400</link>
      <description>&lt;P&gt;DOH, let me verify...this is what I get for subnetting with an online calculator rather than doing it by hand...&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 16:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/match-type-CIDR-doesn-t-seem-to-work/m-p/83970#M21400</guid>
      <dc:creator>ccsfdave</dc:creator>
      <dc:date>2013-07-03T16:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: match_type = CIDR doesn't seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/match-type-CIDR-doesn-t-seem-to-work/m-p/83971#M21401</link>
      <description>&lt;P&gt;Ugh, right you were gkanapathy!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 16:58:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/match-type-CIDR-doesn-t-seem-to-work/m-p/83971#M21401</guid>
      <dc:creator>ccsfdave</dc:creator>
      <dc:date>2013-07-03T16:58:19Z</dc:date>
    </item>
  </channel>
</rss>

