<?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 use the cidrmatch() function with IPV6 IP addresses? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-cidrmatch-function-with-IPV6-IP-addresses/m-p/134339#M36716</link>
    <description>&lt;P&gt;thank you but does not work .&lt;BR /&gt;
i try like that:&lt;BR /&gt;
    | eval network=if(cidrmatch("2001:0000::/32",2001:0000:4136:e378:8000:63bf:3fff:fdd2), "local", "other")&lt;BR /&gt;
but no isue.  and i have this error:&lt;BR /&gt;
&lt;STRONG&gt;Error in 'eval' command: The expression is malformed. Expected ).&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2015 09:23:30 GMT</pubDate>
    <dc:creator>fdi01</dc:creator>
    <dc:date>2015-04-14T09:23:30Z</dc:date>
    <item>
      <title>How to use the cidrmatch() function with IPV6 IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-cidrmatch-function-with-IPV6-IP-addresses/m-p/134337#M36714</link>
      <description>&lt;P&gt;The cidrmatch() function is used to identify IP addresses that belong to a particular subnet. How do I use it with IPV6 IP addresses? Syntax?&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2015 07:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-cidrmatch-function-with-IPV6-IP-addresses/m-p/134337#M36714</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-04-14T07:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the cidrmatch() function with IPV6 IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-cidrmatch-function-with-IPV6-IP-addresses/m-p/134338#M36715</link>
      <description>&lt;P&gt;Hello! I Firs i suggest that you follow this doc: &lt;A href="https://blog.icann.org/wp-content/uploads/2010/07/ipv6-address-types.pdf"&gt;https://blog.icann.org/wp-content/uploads/2010/07/ipv6-address-types.pdf&lt;/A&gt;&lt;BR /&gt;
Then, for example to use the cidrmatch() for &lt;STRONG&gt;2001:0000:4136:e378:8000:63bf:3fff:fdd2&lt;/STRONG&gt; address, you can just do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;........... | eval network=if(cidrmatch("2001:0000::/32",clientip), "local", "other")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which  compare the IP addresses in the clientip field to a subnet range, and give the value &lt;STRONG&gt;local&lt;/STRONG&gt; to the network if the value of clientip falls in the subnet range, Otherwise, &lt;STRONG&gt;network=other&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2015 09:03:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-cidrmatch-function-with-IPV6-IP-addresses/m-p/134338#M36715</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-04-14T09:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the cidrmatch() function with IPV6 IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-cidrmatch-function-with-IPV6-IP-addresses/m-p/134339#M36716</link>
      <description>&lt;P&gt;thank you but does not work .&lt;BR /&gt;
i try like that:&lt;BR /&gt;
    | eval network=if(cidrmatch("2001:0000::/32",2001:0000:4136:e378:8000:63bf:3fff:fdd2), "local", "other")&lt;BR /&gt;
but no isue.  and i have this error:&lt;BR /&gt;
&lt;STRONG&gt;Error in 'eval' command: The expression is malformed. Expected ).&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2015 09:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-cidrmatch-function-with-IPV6-IP-addresses/m-p/134339#M36716</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-04-14T09:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the cidrmatch() function with IPV6 IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-cidrmatch-function-with-IPV6-IP-addresses/m-p/134340#M36717</link>
      <description>&lt;P&gt;you don't need to test like this. My query suppose that you have a field named &lt;STRONG&gt;clientip&lt;/STRONG&gt;, with &lt;STRONG&gt;IPV6 IP addresses&lt;/STRONG&gt; in your events. To test with a value of  &lt;STRONG&gt;clientip&lt;/STRONG&gt; try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  your base search  | eval network=if(cidrmatch("2001:0000::/32","2001:0000:4136:e378:8000:63bf:3fff:fdd2"), "local", "other")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think it will work&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-cidrmatch-function-with-IPV6-IP-addresses/m-p/134340#M36717</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-04-14T13:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the cidrmatch() function with IPV6 IP addresses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-cidrmatch-function-with-IPV6-IP-addresses/m-p/134341#M36718</link>
      <description>&lt;P&gt;it work fine Mr stephanefotso is it cool&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:18:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-cidrmatch-function-with-IPV6-IP-addresses/m-p/134341#M36718</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-04-14T13:18:33Z</dc:date>
    </item>
  </channel>
</rss>

