<?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 How does one search for a CIDR range of addresses? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-does-one-search-for-a-CIDR-range-of-addresses/m-p/118317#M31577</link>
    <description>&lt;P&gt;If I want to search for a range of addresses, say anything in 10.0.1.0/24 from anywhere in the log, how do you do that? I can't find anything that works.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Apr 2014 01:07:24 GMT</pubDate>
    <dc:creator>samalchow</dc:creator>
    <dc:date>2014-04-03T01:07:24Z</dc:date>
    <item>
      <title>How does one search for a CIDR range of addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-one-search-for-a-CIDR-range-of-addresses/m-p/118317#M31577</link>
      <description>&lt;P&gt;If I want to search for a range of addresses, say anything in 10.0.1.0/24 from anywhere in the log, how do you do that? I can't find anything that works.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 01:07:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-one-search-for-a-CIDR-range-of-addresses/m-p/118317#M31577</guid>
      <dc:creator>samalchow</dc:creator>
      <dc:date>2014-04-03T01:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: How does one search for a CIDR range of addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-one-search-for-a-CIDR-range-of-addresses/m-p/118318#M31578</link>
      <description>&lt;P&gt;You can't do CIDR defined search on freetext. You can however do it if you have the IP addresses you want to match against in extracted fields. In other words,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10.0.0.0/24
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;won't work, but&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;src_ip=10.0.0.0/24
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;will.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 06:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-one-search-for-a-CIDR-range-of-addresses/m-p/118318#M31578</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-04-03T06:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How does one search for a CIDR range of addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-one-search-for-a-CIDR-range-of-addresses/m-p/118319#M31579</link>
      <description>&lt;P&gt;If the IP ranges are consecutive you can use an online CIDR calculator to get the CIDR notation to use. Example: to search where src_ip is between 127.0.120.0 and 127.0.122.0, use &lt;STRONG&gt;src_ip=127.0.120.0/23&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-one-search-for-a-CIDR-range-of-addresses/m-p/118319#M31579</guid>
      <dc:creator>dfrankekcg</dc:creator>
      <dc:date>2020-09-29T10:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: How does one search for a CIDR range of addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-does-one-search-for-a-CIDR-range-of-addresses/m-p/118320#M31580</link>
      <description>&lt;P&gt;You can frame the search with wild cards. Example: src_ip=10.1.2.[wcrd] for a /24 CIDR range or src_ip=10.7.[wcrd].[wcrd] for a /16 CIDR range, etc.&lt;/P&gt;

&lt;P&gt;[wcrd] = *&lt;/P&gt;

&lt;P&gt;(I was having trouble getting the * to show when using more than 1 in the IP addresses.)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-does-one-search-for-a-CIDR-range-of-addresses/m-p/118320#M31580</guid>
      <dc:creator>lball</dc:creator>
      <dc:date>2020-09-29T17:34:18Z</dc:date>
    </item>
  </channel>
</rss>

