<?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 addresses parsed properly? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79250#M181717</link>
    <description>&lt;P&gt;Can I use all 6 of these patterns and combine them into a single 'type' called 'IPv6 address'?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Dec 2014 19:44:45 GMT</pubDate>
    <dc:creator>stefanlasiewski</dc:creator>
    <dc:date>2014-12-16T19:44:45Z</dc:date>
    <item>
      <title>IPv6 addresses parsed properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79245#M181712</link>
      <description>&lt;P&gt;Does splunk have any issues with parsing out IPv6 addresses from firewall events?  I guess it all depends on how the transforms are written and how the fields are delimited (Cisco App written to parse IPv6).&lt;/P&gt;

&lt;P&gt;Has anyone successfully parsed IPv6 or noticed any issues or caveats that we should be aware of?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2010 01:39:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79245#M181712</guid>
      <dc:creator>EricPartington</dc:creator>
      <dc:date>2010-10-28T01:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: IPv6 addresses parsed properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79246#M181713</link>
      <description>&lt;P&gt;There are several formats in which IPv6 can be displayed in your event log. You will want to use transforms.conf to find and parse these addresses. Here is a list of regex that matches the different forms. (The IPv4 address converted to IPv6 used in the examples below is 192.168.10.100 with a net mask of 255.255.255.0)&lt;/P&gt;

&lt;H3&gt;Full IPv6 address:&lt;/H3&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;B&gt;fe80:0000:0000:0000:0000:0000:c0a8:a64&lt;/B&gt;&lt;/CODE&gt;&lt;/PRE&gt;
Regex to match and return full address as $1:  &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;B&gt;([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4})&lt;/B&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;H3&gt;IPv6 drop leading zero's:&lt;/H3&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;STRONG&gt;fe80:0:0:0:0:0:c0a8:a64&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;
Regex to match and return full address as $1 (yes, its the same as the above): &lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;B&gt;([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4})&lt;/B&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;H3&gt;IPv6 collapse multiple zero's:&lt;/H3&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;STRONG&gt;fe80::c0a8:a64&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;
Regex to match collapsed zero groups. This will also work with collapsed zeros at the beginning of the address but not for single group addresses(e.g. '::1') and does not check for illegal IPv6 addresses (e.g. fe80::c0a8::a64): &lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;B&gt;(:?:?[0-9A-Fa-f]{1,4}:?[::]?[0-9A-Fa-f]{1,4}:?[::]?[0-9A-Fa-f]{1,4}:?[::]?[0-9A-Fa-f]{1,4}:?[::]?[0-9A-Fa-f]{1,4}:?[::]?[0-9A-Fa-f]{1,4}:?[[::]?[0-9A-Fa-f]{1,4}]?)&lt;/B&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;To account for mixed IPv4 and IPv6 addresses, IPv6 allows for changing the last 4 bits to include the IPv4 address fe80:0000:0000:0000:0000:0000:c0a8:a64 would then be noted with the quad address at the end and become 'fe80:0000:0000:0000:0000:0000:192.168.10.100'.&lt;/P&gt;

&lt;H3&gt;Full IPv6 with IPv4 quad:&lt;/H3&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;STRONG&gt;fe80:0000:0000:0000:0000:0000:192.168.10.100&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;
Regex to match: &lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;B&gt;([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:(?:\d{1,3}.){3}\d{1,3}) &lt;/B&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;H3&gt;IPv6 dropping leading zero's with IPv4 quad:&lt;/H3&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;STRONG&gt;fe80:0:0:0:0:0:192.168.10.100&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;
Regex to match (same as above): &lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;B&gt; ([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}:(?:\d{1,3}.){3}\d{1,3}) &lt;/B&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;H3&gt;IPv6 with collapsed zero's and IPv4 quad:&lt;/H3&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;STRONG&gt;fe80::192.168.10.100&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;
Regex to match: &lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;B&gt;(:?:?[0-9A-Fa-f]{1,4}:?[::]?[0-9A-Fa-f]{1,4}:?[::]?[0-9A-Fa-f]{1,4}:?[::]?[0-9A-Fa-f]{1,4}:?[::]?[0-9A-Fa-f]{1,4}:?[[::]?[0-9A-Fa-f]{1,4}]?(?:\d{1,3}.){3}\d{1,3}) &lt;/B&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Depending on the IPv6 address type that you are seeing in your events, you may want to tailor the regex to fit your IPv6 addresses more specifically.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2010 20:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79246#M181713</guid>
      <dc:creator>Rob</dc:creator>
      <dc:date>2010-11-29T20:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: IPv6 addresses parsed properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79247#M181714</link>
      <description>&lt;P&gt;Certainly some example IPv6 addresses in the events themselves would be useful....&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2010 22:59:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79247#M181714</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2010-11-29T22:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: IPv6 addresses parsed properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79248#M181715</link>
      <description>&lt;P&gt;Note that the IETF has proposed &lt;A href="http://tools.ietf.org/html/rfc5952"&gt;RFC 5952&lt;/A&gt; to "define a canonical textual representation format" across all systems and codes. Currently, IPv6 is difficult to parse, and the wide range of regex rules is going to leave holes in many apps. Hopefully RFC 5952 will bring some sanity to this mess.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2012 00:35:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79248#M181715</guid>
      <dc:creator>stefanlasiewski</dc:creator>
      <dc:date>2012-03-20T00:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: IPv6 addresses parsed properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79249#M181716</link>
      <description>&lt;P&gt;How do you use these in an actual search?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 19:16:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79249#M181716</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2013-03-18T19:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: IPv6 addresses parsed properly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79250#M181717</link>
      <description>&lt;P&gt;Can I use all 6 of these patterns and combine them into a single 'type' called 'IPv6 address'?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2014 19:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IPv6-addresses-parsed-properly/m-p/79250#M181717</guid>
      <dc:creator>stefanlasiewski</dc:creator>
      <dc:date>2014-12-16T19:44:45Z</dc:date>
    </item>
  </channel>
</rss>

