<?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: getting ip range lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/655420#M226402</link>
    <description>&lt;P&gt;If your IP ranges are defined as CIDR ranges then you can make a lookup using the IP range as a CIDR lookup field and then you can give a lookup for an IP address and it will return location.&lt;/P&gt;&lt;P&gt;See the lookup documentation&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Lookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 23:19:04 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2023-08-23T23:19:04Z</dc:date>
    <item>
      <title>How to get ip range lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/655402#M226398</link>
      <description>&lt;P&gt;I uploaded csv lookup table has 2 field location and iprange.&lt;BR /&gt;&lt;BR /&gt;iS THERE WAY TO GET WHAT ARE POSSIBLE IP IN EACH RANGE. SO I CAN ENTER IP address it will return the location for that range?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 17:21:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/655402#M226398</guid>
      <dc:creator>abi2023</dc:creator>
      <dc:date>2023-08-24T17:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: getting ip range lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/655415#M226399</link>
      <description>&lt;P&gt;How is iprange defined?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 22:26:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/655415#M226399</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-23T22:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: getting ip range lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/655420#M226402</link>
      <description>&lt;P&gt;If your IP ranges are defined as CIDR ranges then you can make a lookup using the IP range as a CIDR lookup field and then you can give a lookup for an IP address and it will return location.&lt;/P&gt;&lt;P&gt;See the lookup documentation&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Lookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 23:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/655420#M226402</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-08-23T23:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: getting ip range lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/655674#M226489</link>
      <description>&lt;P&gt;|inputlookup demo.csv&lt;BR /&gt;| eval ip = "xx.xxx.xxx.xxx" ```Enter IP address you the Match```&lt;BR /&gt;| eval result=if(cidrmatch(ip_range, ip), "true", "false")&lt;BR /&gt;| search result="true"&lt;BR /&gt;&lt;BR /&gt;i am using above spl to return result for the ip address associated with the IP range in lookup table. this work fine.&lt;BR /&gt;&lt;BR /&gt;I want do same thing when index=main has field ip which contains IP address. I need to invoke cidrmatch out result assiate with same iprange. how do modifiy my SPL. SINCE lookup table and my index info has nothing in common other than Ip field i have and lookup table has ip tange info. Is there way i can use lookup cammand do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 16:26:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/655674#M226489</guid>
      <dc:creator>abi2023</dc:creator>
      <dc:date>2023-08-25T16:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: getting ip range lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/655696#M226495</link>
      <description>&lt;P&gt;Yes, you need to make a lookup DEFINITION based on the lookup file. In the advanced options for the definition add &lt;STRONG&gt;CIDR(ip_range)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In your SPL you do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main
| lookup definition_name ip_range as ip OUTPUT ip_range as found&lt;/LI-CODE&gt;&lt;P&gt;then you will have the &lt;STRONG&gt;found&lt;/STRONG&gt; field as your range if the IP is found or null if not found&lt;/P&gt;&lt;P&gt;so you can do this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnotnull(found)&lt;/LI-CODE&gt;&lt;P&gt;which will find those that match the range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 21:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/655696#M226495</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-08-25T21:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: getting ip range lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/693104#M235864</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I hope someone can help me, In my case the lookup has a CIDR definition, but the lookup is not matching and I know there is a least one match&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="albertosirt_0-1720720249996.png" style="width: 570px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31713i1231400016ADF9C0/image-dimensions/570x183?v=v2" width="570" height="183" role="button" title="albertosirt_0-1720720249996.png" alt="albertosirt_0-1720720249996.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is my line:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| lookup file.csv network AS ip OUTPUT network AS sub_xarxa&lt;/LI-CODE&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 18:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/693104#M235864</guid>
      <dc:creator>alberto-sirt</dc:creator>
      <dc:date>2024-07-11T18:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: getting ip range lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/693130#M235868</link>
      <description>&lt;P&gt;Your lookup command is looking up file.csv, which is NOT the definition.&lt;/P&gt;&lt;P&gt;The lookup file contains the data, the lookup definition is the lens through which you interpret the data in the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 23:53:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/693130#M235868</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-07-11T23:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: getting ip range lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/693138#M235870</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268761"&gt;@alberto-sirt&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;said you need to use a lookup definition instead of querying the lookup file itself. You can refer to this example:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.2/Knowledge/Addfieldmatchingrulestoyourlookupconfiguration#Example_of_using_match_type_for_IPv6_CIDR_match" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.2/Knowledge/Addfieldmatchingrulestoyourlookupconfiguration#Example_of_using_match_type_for_IPv6_CIDR_match&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 05:24:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/693138#M235870</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2024-07-12T05:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: getting ip range lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/693148#M235874</link>
      <description>&lt;P&gt;Thanks very much. It is solve now.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 07:06:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-ip-range-lookup/m-p/693148#M235874</guid>
      <dc:creator>alberto-sirt</dc:creator>
      <dc:date>2024-07-12T07:06:16Z</dc:date>
    </item>
  </channel>
</rss>

