<?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: How to display the source ip which does not fall under cidr range specified in a lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-source-ip-which-does-not-fall-under-cidr/m-p/608214#M211483</link>
    <description>&lt;P&gt;Try something like this (assuming the lookup type is defined as being CIDR)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup cidr_vpc.csv allowed_cidr_range as src_ip output applications]
| where isnull(applications)
| table _time,host,sourcetype,src_ip,dst_ip&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 06:07:30 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-08-04T06:07:30Z</dc:date>
    <item>
      <title>How to display the source ip which does not fall under cidr range specified in a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-source-ip-which-does-not-fall-under-cidr/m-p/608210#M211482</link>
      <description>&lt;P&gt;I have a lookup table with allowed CIDR ranges.&lt;/P&gt;
&lt;P&gt;allowed_cidr_range&amp;nbsp; &amp;nbsp; &amp;nbsp; applications&lt;/P&gt;
&lt;P&gt;Xyx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;abc&lt;/P&gt;
&lt;P&gt;I need to build a alert whenever source ip does not belong to the allowed cidr range.&lt;/P&gt;
&lt;P&gt;Query :&lt;/P&gt;
&lt;P&gt;NOT [| lookup cidr_vpc.csv allowed_cidr_range as src_ip output allowed_cidr_range]&lt;/P&gt;
&lt;P&gt;|table _time,host,sourcetype,src_ip,dst_ip&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 14:35:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-source-ip-which-does-not-fall-under-cidr/m-p/608210#M211482</guid>
      <dc:creator>Pooja_R</dc:creator>
      <dc:date>2022-08-04T14:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the source ip which does not fall under cidr range specified in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-source-ip-which-does-not-fall-under-cidr/m-p/608214#M211483</link>
      <description>&lt;P&gt;Try something like this (assuming the lookup type is defined as being CIDR)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup cidr_vpc.csv allowed_cidr_range as src_ip output applications]
| where isnull(applications)
| table _time,host,sourcetype,src_ip,dst_ip&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 06:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-source-ip-which-does-not-fall-under-cidr/m-p/608214#M211483</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-04T06:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the source ip which does not fall under cidr range specified in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-source-ip-which-does-not-fall-under-cidr/m-p/608216#M211484</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The lookup table looks something&amp;nbsp; like&lt;/P&gt;&lt;P&gt;allowed_cidr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; applications&lt;/P&gt;&lt;P&gt;10.7.0.0/16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dev&lt;/P&gt;&lt;P&gt;10.16.0.0/26&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;non_prod_server&lt;/P&gt;&lt;P&gt;I want to consider allowed_cidr as source ip and display the addresses not in&amp;nbsp; cidrmatch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 06:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-source-ip-which-does-not-fall-under-cidr/m-p/608216#M211484</guid>
      <dc:creator>Pooja_R</dc:creator>
      <dc:date>2022-08-04T06:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the source ip which does not fall under cidr range specified in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-source-ip-which-does-not-fall-under-cidr/m-p/608217#M211485</link>
      <description>&lt;P&gt;Look up the src_ip (make sure the lookup definition says CIDR match)&lt;/P&gt;&lt;P&gt;If the lookup finds a match then the src_ip is allowed, therefore, if there is no match applications will be null&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup cidr_vpc.csv allowed_cidr as src_ip OUTPUT applications
| where isnull(applications)
| table _time,host,sourcetype,src_ip,dst_ip&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Aug 2022 06:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-source-ip-which-does-not-fall-under-cidr/m-p/608217#M211485</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-04T06:36:40Z</dc:date>
    </item>
  </channel>
</rss>

