<?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: CIDR match not working on Splunk 8.X in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/CIDR-match-not-working-on-Splunk-8-X/m-p/571514#M199151</link>
    <description>&lt;P&gt;I had the same problem with the maxmind build int asn_lookup_by_cidr.&lt;/P&gt;&lt;P&gt;Turns out the lookup file is too large. I copied the lookup file with a subset of data and created a new lookup definition unsine match_type=CIDR&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup asn_lookup_by_cidr | head 100000
| rename ip AS sub
| outputlookup asn_lookup_by_cidr_fix.csv&lt;/LI-CODE&gt;&lt;P&gt;When I reached the 400K mark the lookup stopped working.&lt;BR /&gt;Raising the max_memtable_bytes value in limits.conf should fix it.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 13:43:24 GMT</pubDate>
    <dc:creator>marand</dc:creator>
    <dc:date>2021-10-19T13:43:24Z</dc:date>
    <item>
      <title>CIDR match not working on Splunk 8.X</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CIDR-match-not-working-on-Splunk-8-X/m-p/547899#M155370</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have been migrating objects from Splunk 7.3.9 to Splunk 8.X and have found some strange issue, hope someone has a clue.&lt;/P&gt;&lt;P&gt;So basically we have a lookup file with a definition using cidr match.&lt;/P&gt;&lt;P&gt;The csv contains, among other fields, an ip, cidr and subnet columns.&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;ip&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;cidr&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;subnet&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;10.1.1.2&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;10.1.1.2/32&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;10.1.1.0/24&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is on "Lookup Definition" match type:&lt;/P&gt;&lt;P&gt;CIDR(cidr)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However if I try to do this simple query:&lt;BR /&gt;&lt;BR /&gt;| makeresults&lt;BR /&gt;| eval ip="10.1.1.2"&lt;BR /&gt;| table ip&lt;BR /&gt;| lookup &amp;lt;lookup_name&amp;gt; cidr as ip OUTPUT subnet, it doesn't work.&lt;/P&gt;&lt;P&gt;The exact same thing is working properly in splunk 7.3.9.&lt;/P&gt;&lt;P&gt;Any clue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Tiago&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 13:20:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CIDR-match-not-working-on-Splunk-8-X/m-p/547899#M155370</guid>
      <dc:creator>duartet</dc:creator>
      <dc:date>2021-04-14T13:20:27Z</dc:date>
    </item>
    <item>
      <title>CIDR match not working on Splunk 8.X</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CIDR-match-not-working-on-Splunk-8-X/m-p/548318#M155528</link>
      <description>&lt;P&gt;I just tried with 8.1.3 and wasn't able to reproduce.&amp;nbsp; Also didn't see anything in the release notes about that. Can you reproduce with a new lookup as a quick test?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you lookup by ip instead of cidr, just to make sure the lookup works in general?&amp;nbsp; could there be anything annoying like whitespace in the cidr field?&amp;nbsp; may be worth diving into props/transforms to ensure nothing got moved/modified/overwritten during the upgrade?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 13:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CIDR-match-not-working-on-Splunk-8-X/m-p/548318#M155528</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2021-04-17T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: CIDR match not working on Splunk 8.X</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CIDR-match-not-working-on-Splunk-8-X/m-p/548330#M155534</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically I have tested this in 3 different Splunk SHs. One with 7.3.9 where all is working fine, another with 8.0.4.1 with same configurations (csv and lookup definition) , and another with 8.0.8, that I have upgraded to 8.1.3, also with same configuration.&lt;/P&gt;&lt;P&gt;I have tried before matching directly with IP and it works, but not with cidr field. There's no extra whitespaces, the same lookup works properly on 7.3.9 matching cidr field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have configured the lookup fresh via gui on both Splunk 8.X SHs and it didn't work anyway.&lt;/P&gt;&lt;P&gt;Tried in search time use the cidrmatch function and it works.&lt;/P&gt;&lt;P&gt;So basically the only thing not working is CIDR in lookup definition.&lt;/P&gt;&lt;P&gt;Hope this clarifies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 08:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CIDR-match-not-working-on-Splunk-8-X/m-p/548330#M155534</guid>
      <dc:creator>duartet</dc:creator>
      <dc:date>2021-04-19T08:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: CIDR match not working on Splunk 8.X</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CIDR-match-not-working-on-Splunk-8-X/m-p/571514#M199151</link>
      <description>&lt;P&gt;I had the same problem with the maxmind build int asn_lookup_by_cidr.&lt;/P&gt;&lt;P&gt;Turns out the lookup file is too large. I copied the lookup file with a subset of data and created a new lookup definition unsine match_type=CIDR&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup asn_lookup_by_cidr | head 100000
| rename ip AS sub
| outputlookup asn_lookup_by_cidr_fix.csv&lt;/LI-CODE&gt;&lt;P&gt;When I reached the 400K mark the lookup stopped working.&lt;BR /&gt;Raising the max_memtable_bytes value in limits.conf should fix it.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 13:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CIDR-match-not-working-on-Splunk-8-X/m-p/571514#M199151</guid>
      <dc:creator>marand</dc:creator>
      <dc:date>2021-10-19T13:43:24Z</dc:date>
    </item>
  </channel>
</rss>

