<?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: CIDR search on host field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/CIDR-search-on-host-field/m-p/50903#M9764</link>
    <description>&lt;P&gt;Actually, it's 100% UDP. So the host field should be an IP. The cidrmatch() function is working, but it's not user-friendly.&lt;/P&gt;

&lt;P&gt;I tried something else :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;host=10.1.2.* host=10.1.2.0/24&lt;BR /&gt;
--&amp;gt; returns nothing&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;host=10.1.2.* | search host=10.1.2.0/24&lt;BR /&gt;
--&amp;gt; returns 48k+ matches&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Bug spotted ? I'll open a case.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2012 08:51:34 GMT</pubDate>
    <dc:creator>afaraino</dc:creator>
    <dc:date>2012-01-16T08:51:34Z</dc:date>
    <item>
      <title>CIDR search on host field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CIDR-search-on-host-field/m-p/50901#M9762</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;

&lt;P&gt;I'm facing a strange behavior here :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;searching host=10.1.2.* returns 511,000+ results&lt;/LI&gt;
&lt;LI&gt;searching host=10.1.2.0/24 returns 807 results&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Am I missing something?&lt;/P&gt;

&lt;P&gt;I'm using Splunk 4.2.4.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Alexandre Faraino&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2012 14:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CIDR-search-on-host-field/m-p/50901#M9762</guid>
      <dc:creator>afaraino</dc:creator>
      <dc:date>2012-01-13T14:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: CIDR search on host field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CIDR-search-on-host-field/m-p/50902#M9763</link>
      <description>&lt;P&gt;Are the ones returning for the subset of records from a specific data input or set of inputs? I am finding that the CIDR search host=127.0.0.1/24 will work if Splunk is setting the host as the IP which it does for data inputs of type TCP or UDP. If I use a file or directory input type and then set the host field value to an IP address, those data inputs aren't picked up in the CIDR search host=127.0.0.1/24 but will be found in the search host=127.0.0.*&lt;/P&gt;

&lt;P&gt;One way around it is to use the cidrmatch function as it will pick up records from both types of data inputs:&lt;BR /&gt;
* | where cidrmatch("127.0.0.1/24", host), but so will the 127.0.0.*&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2012 21:39:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CIDR-search-on-host-field/m-p/50902#M9763</guid>
      <dc:creator>SarahWKarvenz</dc:creator>
      <dc:date>2012-01-13T21:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: CIDR search on host field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CIDR-search-on-host-field/m-p/50903#M9764</link>
      <description>&lt;P&gt;Actually, it's 100% UDP. So the host field should be an IP. The cidrmatch() function is working, but it's not user-friendly.&lt;/P&gt;

&lt;P&gt;I tried something else :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;host=10.1.2.* host=10.1.2.0/24&lt;BR /&gt;
--&amp;gt; returns nothing&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;host=10.1.2.* | search host=10.1.2.0/24&lt;BR /&gt;
--&amp;gt; returns 48k+ matches&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Bug spotted ? I'll open a case.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:51:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CIDR-search-on-host-field/m-p/50903#M9764</guid>
      <dc:creator>afaraino</dc:creator>
      <dc:date>2012-01-16T08:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: CIDR search on host field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CIDR-search-on-host-field/m-p/50904#M9765</link>
      <description>&lt;P&gt;Is there any update on whether or not this is going to be fixed? I'm running into the same issue as the original author right now.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 19:23:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CIDR-search-on-host-field/m-p/50904#M9765</guid>
      <dc:creator>tmeader</dc:creator>
      <dc:date>2015-11-30T19:23:47Z</dc:date>
    </item>
  </channel>
</rss>

