<?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: IPV6 convert to ipv4 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-IPV6-to-ipv4/m-p/598328#M208351</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/87518"&gt;@FrankVl&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;IPv6 is a completely different addressing scheme than IPv4. You can't translate IPv6 addresses to IPv4 addresses.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In this instance im 99.999% sure he's talking about IPv4 in IPv6 and converting it back to IPv4. So Yes. But no. We're dealing with this right now (we're are borg, you will be assimilated). IPv6 is not IPv4 but IPv6 can encapsulate (thats the word i chose, deal with it &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; ) IPv4. Salesforce does this. You get something like ...&lt;/P&gt;&lt;P&gt;&lt;EM&gt;0000:0000:0000:0000:0000:ffff:&lt;STRONG&gt;abcd:ef01&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;in this example&amp;nbsp;&lt;STRONG&gt;ab&lt;/STRONG&gt; is first octet,&amp;nbsp;&lt;STRONG&gt;cd&lt;/STRONG&gt; is second,&amp;nbsp;&lt;STRONG&gt;ef&lt;/STRONG&gt; is third,&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;01&lt;/STRONG&gt; is fourth.&amp;nbsp;you have a couple of options for dealing with this but all of them &lt;EM&gt;&lt;STRONG&gt;start with an extract of the octets&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; and then involve an&amp;nbsp;&lt;STRONG&gt;EVAL-&lt;/STRONG&gt; that puts them back together. The only difference is that instead of doing a&amp;nbsp;&lt;EM&gt;tonumber()&lt;/EM&gt; repeatedly, you could add the option of using a lookup table instead which may save some processing power for LISPY (or not given all the extra steps; i have no idea).&lt;/P&gt;&lt;P&gt;The easiest option after&amp;nbsp;&lt;STRONG&gt;EXTRACT&lt;/STRONG&gt;ing out the octets is...&lt;/P&gt;&lt;PRE&gt;EVAL-ipaddr = tonumber(hex_value, oct1)+"."+tonumber(hex_value, oct2)+"."+tonumber(hex_value, oct3)+"."tonumber(hex_value, oct4)&lt;/PRE&gt;&lt;P&gt;If someone has a better way, i'd love to hear it. If not please accept this answer so i get coolness points.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 15:22:48 GMT</pubDate>
    <dc:creator>jamesjarrett</dc:creator>
    <dc:date>2022-05-18T15:22:48Z</dc:date>
    <item>
      <title>How to convert IPV6 to ipv4?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-IPV6-to-ipv4/m-p/480483#M193012</link>
      <description>&lt;P&gt;Among the data stored in splunk is in ipv6 format. I want to know how to convert the ipv6 format to the ipv4 format. In addition, ipv6 format to ipv4 format would like to know how to convert when reading know file.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 16:24:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-IPV6-to-ipv4/m-p/480483#M193012</guid>
      <dc:creator>khyoung7410</dc:creator>
      <dc:date>2022-05-18T16:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: IPV6 convert to ipv4</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-IPV6-to-ipv4/m-p/480484#M193013</link>
      <description>&lt;P&gt;IPv6 is a completely different addressing scheme than IPv4. You can't translate IPv6 addresses to IPv4 addresses.&lt;/P&gt;

&lt;P&gt;The only thing I can think of is that you have IPv4 addresses in this notation: &lt;CODE&gt;::ffff:10.0.0.1&lt;/CODE&gt;. If that is the case, you can simply strip off the &lt;CODE&gt;::ffff:&lt;/CODE&gt; bit with whatever approach suits you.&lt;/P&gt;

&lt;P&gt;Maybe I'm missing something, but then please explain a bit further what issue you have and what you want to achieve. Some sample data is always helpful for improving our understanding of your question.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 09:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-IPV6-to-ipv4/m-p/480484#M193013</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-11-11T09:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: IPV6 convert to ipv4</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-IPV6-to-ipv4/m-p/598328#M208351</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/87518"&gt;@FrankVl&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;IPv6 is a completely different addressing scheme than IPv4. You can't translate IPv6 addresses to IPv4 addresses.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In this instance im 99.999% sure he's talking about IPv4 in IPv6 and converting it back to IPv4. So Yes. But no. We're dealing with this right now (we're are borg, you will be assimilated). IPv6 is not IPv4 but IPv6 can encapsulate (thats the word i chose, deal with it &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; ) IPv4. Salesforce does this. You get something like ...&lt;/P&gt;&lt;P&gt;&lt;EM&gt;0000:0000:0000:0000:0000:ffff:&lt;STRONG&gt;abcd:ef01&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;in this example&amp;nbsp;&lt;STRONG&gt;ab&lt;/STRONG&gt; is first octet,&amp;nbsp;&lt;STRONG&gt;cd&lt;/STRONG&gt; is second,&amp;nbsp;&lt;STRONG&gt;ef&lt;/STRONG&gt; is third,&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;01&lt;/STRONG&gt; is fourth.&amp;nbsp;you have a couple of options for dealing with this but all of them &lt;EM&gt;&lt;STRONG&gt;start with an extract of the octets&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; and then involve an&amp;nbsp;&lt;STRONG&gt;EVAL-&lt;/STRONG&gt; that puts them back together. The only difference is that instead of doing a&amp;nbsp;&lt;EM&gt;tonumber()&lt;/EM&gt; repeatedly, you could add the option of using a lookup table instead which may save some processing power for LISPY (or not given all the extra steps; i have no idea).&lt;/P&gt;&lt;P&gt;The easiest option after&amp;nbsp;&lt;STRONG&gt;EXTRACT&lt;/STRONG&gt;ing out the octets is...&lt;/P&gt;&lt;PRE&gt;EVAL-ipaddr = tonumber(hex_value, oct1)+"."+tonumber(hex_value, oct2)+"."+tonumber(hex_value, oct3)+"."tonumber(hex_value, oct4)&lt;/PRE&gt;&lt;P&gt;If someone has a better way, i'd love to hear it. If not please accept this answer so i get coolness points.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 15:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-IPV6-to-ipv4/m-p/598328#M208351</guid>
      <dc:creator>jamesjarrett</dc:creator>
      <dc:date>2022-05-18T15:22:48Z</dc:date>
    </item>
  </channel>
</rss>

