<?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 does cidrmatch work? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-does-cidrmatch-work/m-p/490410#M8815</link>
    <description>&lt;P&gt;Very kind @harsmarvania57 - please convert to an answer...&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 14:32:13 GMT</pubDate>
    <dc:creator>danielbb</dc:creator>
    <dc:date>2019-09-26T14:32:13Z</dc:date>
    <item>
      <title>How does cidrmatch work?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-does-cidrmatch-work/m-p/490407#M8812</link>
      <description>&lt;P&gt;The following code -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval ipa="10.22.3.2" 
| eval ret=if(cidrmatch("10.0.0.0/8", ipa), "tr", "fl") 
| return ret
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns -&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7740i59B3F066DD5CCA0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Why is that?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 13:29:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-does-cidrmatch-work/m-p/490407#M8812</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2019-09-26T13:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: How does cidrmatch work?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-does-cidrmatch-work/m-p/490408#M8813</link>
      <description>&lt;P&gt;Ok, &lt;/P&gt;

&lt;P&gt;by adding the &lt;CODE&gt;makeresults&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval ipa="10.22.3.2" 
| eval ret=if(cidrmatch("10.0.0.0/8", ipa), "tr", "fl")
| return ret
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get &lt;CODE&gt;ret="tr"&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Not sure whether &lt;CODE&gt;ret="tr"&lt;/CODE&gt; is correct... &lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 13:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-does-cidrmatch-work/m-p/490408#M8813</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2019-09-26T13:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How does cidrmatch work?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-does-cidrmatch-work/m-p/490409#M8814</link>
      <description>&lt;P&gt;It is correct, because IP &lt;CODE&gt;10.22.3.2&lt;/CODE&gt; belongs to CIDR Range &lt;CODE&gt;10.0.0.0/8 -&amp;gt; 10.0.0.0-10.255.255.255&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 14:14:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-does-cidrmatch-work/m-p/490409#M8814</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-09-26T14:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: How does cidrmatch work?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-does-cidrmatch-work/m-p/490410#M8815</link>
      <description>&lt;P&gt;Very kind @harsmarvania57 - please convert to an answer...&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 14:32:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-does-cidrmatch-work/m-p/490410#M8815</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2019-09-26T14:32:13Z</dc:date>
    </item>
  </channel>
</rss>

