<?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: Lookup with IP range in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-with-IP-range/m-p/334761#M99491</link>
    <description>&lt;P&gt;I have exactly the same scenario and its not working. I don't want to add the ip's manually as src, that will defeat the purpose of having a dynamic lookup. Any pointers are appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2019 18:53:17 GMT</pubDate>
    <dc:creator>niddhi</dc:creator>
    <dc:date>2019-05-30T18:53:17Z</dc:date>
    <item>
      <title>Lookup with IP range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-with-IP-range/m-p/334759#M99489</link>
      <description>&lt;P&gt;Hi there, what's the best way to append a search with a lookup with ip subnet ranges and some extra information for those IP's?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;iprange.csv&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; clientip, zone, areacode
127.0.0.1/24, home, 255
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've added the transforms.conf in the app: &lt;/P&gt;

&lt;P&gt;[iprange]&lt;BR /&gt;
 filename = iprange.csv&lt;BR /&gt;
 default_match = OK&lt;BR /&gt;
 match_type = CIDR(clientip)&lt;/P&gt;

&lt;P&gt;and the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=firewall area=* | lookup iprange.csv clientip as src OUTPUT clientip zone area |table src, zone, area
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Yet it doesn't seem to work so far, any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:20:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-with-IP-range/m-p/334759#M99489</guid>
      <dc:creator>MoermansM</dc:creator>
      <dc:date>2020-09-29T18:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with IP range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-with-IP-range/m-p/334760#M99490</link>
      <description>&lt;P&gt;Hi MoermansM,&lt;/P&gt;

&lt;P&gt;You are not getting output because the ip you are getting from firewall is without subnet and your csv contain ip with subnet so can not map the column. &lt;/P&gt;

&lt;P&gt;So in this case the alternative solution for this is to add one more column to your iprange.csv as below: if you are doing this modification then there is no need of transforms.conf.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;src, clientip, zone, areacode
127.0.0.1, 127.0.0.1/24, home, 255
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then try this ..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=firewall area=* | dedup src | lookup iprange.csv src OUTPUT src clientip zone area |table src, clientip, zone, area
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Mar 2018 13:18:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-with-IP-range/m-p/334760#M99490</guid>
      <dc:creator>anjambha</dc:creator>
      <dc:date>2018-03-08T13:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup with IP range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-with-IP-range/m-p/334761#M99491</link>
      <description>&lt;P&gt;I have exactly the same scenario and its not working. I don't want to add the ip's manually as src, that will defeat the purpose of having a dynamic lookup. Any pointers are appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 18:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-with-IP-range/m-p/334761#M99491</guid>
      <dc:creator>niddhi</dc:creator>
      <dc:date>2019-05-30T18:53:17Z</dc:date>
    </item>
  </channel>
</rss>

