<?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 Why does the CIDR not include all IP's in a range? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-CIDR-not-include-all-IP-s-in-a-range/m-p/299194#M56576</link>
    <description>&lt;P&gt;I have a big corporate network with many routers.&lt;BR /&gt;
All routes ha a loopback IP used for syslog.  Ex 10.252.1.10/32&lt;/P&gt;

&lt;P&gt;When I do a search for host like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=syslog host=10.252.1.0/24 (last 24 hour)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When look at host, I do get  a result like this, when look at the host filed.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Values  Count   %
10.252.1.170    8,887   99.396% 
10.252.1.77 32  0.358%  
10.252.1.112    12  0.134%  
10.252.1.17 4   0.045%  
10.252.1.104    3   0.034%  
10.252.1.80 3   0.034%
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Problem is that I do muss several hosts. A search for a specific node like this:&lt;/P&gt;

&lt;P&gt;index=syslog host=10.252.1.105 (last 24 hour)&lt;BR /&gt;
gives this result:   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Values Count   %    
    10.252.1.105    59  100%
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Why do I not see this host with 59 hits in syslog.??&lt;BR /&gt;
Why does CIDR not cover it?&lt;BR /&gt;&lt;BR /&gt;
&lt;STRONG&gt;host=10.252.1.0/24&lt;/STRONG&gt; should it not cover &lt;STRONG&gt;10.252.1.0 to 10.252.1.255&lt;/STRONG&gt;?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Mar 2018 13:49:42 GMT</pubDate>
    <dc:creator>lakromani</dc:creator>
    <dc:date>2018-03-30T13:49:42Z</dc:date>
    <item>
      <title>Why does the CIDR not include all IP's in a range?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-CIDR-not-include-all-IP-s-in-a-range/m-p/299194#M56576</link>
      <description>&lt;P&gt;I have a big corporate network with many routers.&lt;BR /&gt;
All routes ha a loopback IP used for syslog.  Ex 10.252.1.10/32&lt;/P&gt;

&lt;P&gt;When I do a search for host like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=syslog host=10.252.1.0/24 (last 24 hour)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When look at host, I do get  a result like this, when look at the host filed.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Values  Count   %
10.252.1.170    8,887   99.396% 
10.252.1.77 32  0.358%  
10.252.1.112    12  0.134%  
10.252.1.17 4   0.045%  
10.252.1.104    3   0.034%  
10.252.1.80 3   0.034%
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Problem is that I do muss several hosts. A search for a specific node like this:&lt;/P&gt;

&lt;P&gt;index=syslog host=10.252.1.105 (last 24 hour)&lt;BR /&gt;
gives this result:   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Values Count   %    
    10.252.1.105    59  100%
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Why do I not see this host with 59 hits in syslog.??&lt;BR /&gt;
Why does CIDR not cover it?&lt;BR /&gt;&lt;BR /&gt;
&lt;STRONG&gt;host=10.252.1.0/24&lt;/STRONG&gt; should it not cover &lt;STRONG&gt;10.252.1.0 to 10.252.1.255&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 13:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-CIDR-not-include-all-IP-s-in-a-range/m-p/299194#M56576</guid>
      <dc:creator>lakromani</dc:creator>
      <dc:date>2018-03-30T13:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the CIDR not include all IP's in a range?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-CIDR-not-include-all-IP-s-in-a-range/m-p/299195#M56577</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;It's possible that the field you are using for &lt;EM&gt;host&lt;/EM&gt; is not formatted in a way that the CIDR search recognizes. With my data, my field is &lt;EM&gt;src&lt;/EM&gt; which is formatted ipaddress:port:vlan I have to perform a rex on the &lt;EM&gt;src&lt;/EM&gt; field to parse just the  into its own field, and then I can use CIDR notation to pull out all the hosts I have logs for in the time window.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;yourindex&amp;gt; | rex field=src "(?&amp;lt;src_ip&amp;gt;\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})" | search src_ip="10.100.200.0/24" | stats values(src_ip)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 15:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-CIDR-not-include-all-IP-s-in-a-range/m-p/299195#M56577</guid>
      <dc:creator>salbro</dc:creator>
      <dc:date>2018-03-30T15:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the CIDR not include all IP's in a range?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-CIDR-not-include-all-IP-s-in-a-range/m-p/299196#M56578</link>
      <description>&lt;P&gt;You are on the right track.  Just for the test of it, I added &lt;STRONG&gt;host=10.252.1.&lt;/STRONG&gt;* and get more than 100 hits.&lt;BR /&gt;
The host is not part of the &lt;STRONG&gt;_raw&lt;/STRONG&gt; data, so It has to be some with how its extracted.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 19:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-the-CIDR-not-include-all-IP-s-in-a-range/m-p/299196#M56578</guid>
      <dc:creator>lakromani</dc:creator>
      <dc:date>2018-03-30T19:00:02Z</dc:date>
    </item>
  </channel>
</rss>

