<?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 CIDRMatch with a lookup of range IP in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-CIDRMatch-with-a-lookup-of-range-IP/m-p/620411#M215676</link>
    <description>&lt;P&gt;You cannot use the CIDRMATCH feature of lookups without properly defining the lookup. Doing it as a CSV will not work. You need to setup the transforms name and associated feature like CIDR match type. Then use the lookup AS a lookup not a list.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.1/Knowledge/Addfieldmatchingrulestoyourlookupconfiguration" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.1/Knowledge/Addfieldmatchingrulestoyourlookupconfiguration&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2022 12:26:58 GMT</pubDate>
    <dc:creator>starcher</dc:creator>
    <dc:date>2022-11-10T12:26:58Z</dc:date>
    <item>
      <title>Using CIDRMatch with a lookup of range IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-CIDRMatch-with-a-lookup-of-range-IP/m-p/620384#M215659</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I have a query returning result with an IP address value (src_ip).&lt;/P&gt;&lt;P&gt;I used to add a line to match some Range IP :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| where cidrmatch("Range IP", src_ip)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have many other range IP to add. Instead of adding many lines, I created a CSV lookup with all these ranges.&lt;/P&gt;&lt;PRE&gt;range_ip    |  comment &lt;BR /&gt;-----------------------&lt;BR /&gt;10.0.0.0/8  |  range1&lt;BR /&gt;11.0.0.0/8  |  range2&lt;BR /&gt;12.0.0.0/8  |  range3&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea how can I filter my result using CIDRMATCH function and based on range_ip column of my lookup CSV.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like :&lt;/P&gt;&lt;PRE&gt;| where cidrmatch( range_ip IN lookup.csv, src_ip)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 11:01:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-CIDRMatch-with-a-lookup-of-range-IP/m-p/620384#M215659</guid>
      <dc:creator>aymane96</dc:creator>
      <dc:date>2022-11-10T11:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using CIDRMatch with a lookup of range IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-CIDRMatch-with-a-lookup-of-range-IP/m-p/620411#M215676</link>
      <description>&lt;P&gt;You cannot use the CIDRMATCH feature of lookups without properly defining the lookup. Doing it as a CSV will not work. You need to setup the transforms name and associated feature like CIDR match type. Then use the lookup AS a lookup not a list.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.1/Knowledge/Addfieldmatchingrulestoyourlookupconfiguration" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.1/Knowledge/Addfieldmatchingrulestoyourlookupconfiguration&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 12:26:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-CIDRMatch-with-a-lookup-of-range-IP/m-p/620411#M215676</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2022-11-10T12:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using CIDRMatch with a lookup of range IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-CIDRMatch-with-a-lookup-of-range-IP/m-p/620443#M215690</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/67425"&gt;@starcher&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much, it works like a charm.&lt;/P&gt;&lt;P&gt;I used the lookup definition based on my CSV and specified the matchtype as CIDR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 14:58:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-CIDRMatch-with-a-lookup-of-range-IP/m-p/620443#M215690</guid>
      <dc:creator>aymane96</dc:creator>
      <dc:date>2022-11-10T14:58:57Z</dc:date>
    </item>
  </channel>
</rss>

