<?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: mvexpand not working for IP6 field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423159#M121454</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/103102"&gt;@jwalzerpitt&lt;/a&gt; &lt;/P&gt;

&lt;P&gt;If your raw event has multiple keys with the same name like &lt;CODE&gt;Framed-IPv6-Address&lt;/CODE&gt;  then Splunk auto extraction will extract that key with the first value. You have a similar case. So I suggest you extract manually using &lt;CODE&gt;rex&lt;/CODE&gt; command.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/SearchReference/Rex" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/SearchReference/Rex&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Can you please try below search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH | rex field=_raw "Framed-IPv6-Address=(?&amp;lt;Framed_IPv6_Address&amp;gt;(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4})" max_match=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will get all the IPV_6 in &lt;CODE&gt;Framed_IPv6_Address&lt;/CODE&gt; field.&lt;/P&gt;

&lt;P&gt;Try my sample search for more.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw="Framed-IPv6-Address=FE80:0000:0000:0000:0202:B3FF:FE1E:8329, Framed-IPv6-Address=1200:0000:AB00:1234:0000:2552:7777:1313, Framed-IPv6-Address=21DA:D3:0:2F3B:2AA:FF:FE28:9C5A  " | rex field=_raw "Framed-IPv6-Address=(?&amp;lt;Framed_IPv6_Address&amp;gt;(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4})" max_match=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;UPDATED:&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="Jul 31 16:04:30 10.10.10.10 CISE_RADIUS_Accounting 0004688970 1 0 2019-07-31 16:04:30.979 -04:00 0161383501 3001 NOTICE Radius-Accounting: RADIUS Accounting stop request, ConfigVersionId=31, Device IP Address=10.10.10.10, UserName=blah@foo.com, RequestLatency=3, NetworkDeviceName=AA-AAA-CONTROLLERS, User-Name=blah@foo.com, NAS-IP-Address=10.10.10.10, NAS-Port=8, Framed-IP-Address=10.10.10.10, Class=CACS:9b09cd0a0025d10dc3cb415d:aa-ise-psn-01/353699673/4606862, Called-Station-ID=80-87-55-ag-bd-90, Called-Station-ID=80-87-55-ag-bd-90:WIRELESS-BLAH, Calling-Station-ID=38-33-0b-11-42-2g, NAS-Identifier=aa-blah-1.wlc8510, Acct-Status-Type=Stop, Acct-Delay-Time=0, Acct-Input-Octets=10144748, Acct-Output-Octets=172482276, Acct-Session-Id=4a31cbc2/13:83:0b:19:81:2f/4160511, Acct-Authentic=RADIUS, Acct-Session-Time=10376, Acct-Input-Packets=42627, Acct-Output-Packets=144424, Acct-Terminate-Cause=User Request, Acct-Input-Gigawords=0, Acct-Output-Gigawords=0, Event-Timestamp=1564603470, NAS-Port-Type=Wireless - IEEE 802.11, Tunnel-Type=(tag=0) VLAN, Tunnel-Medium-Type=(tag=0) 802, Tunnel-Private-Group-ID=(tag=0) 3317, Framed-IPv6-Address=2620:101:200a:6bf4:c:be6a:2e6e:a010, Framed-IPv6-Address=2620:101:200b:2bf3:420b:c23a:b26e:b3bc, Framed-IPv6-Address=fe63::a4:38f9:bcd2:213a, Framed-IPv6-Address=2620:101:200e:2bf2:11b9:ca2b:1cb:a30a, Framed-IPv6-Address=2620:102:400e:1cf5:c6:a9f1:2013:fbef, Framed-IPv6-Address=2610:101:200b:1df3:14ab:831f:981:cbc2, cisco-av-pair=audit-session-id=9b09cd0a0025d10dc3cb415d, cisco-av-pair=dhcp-option=host-name=users-iPhone, cisco-av-pair=http-tlv=User-Agent=Mozilla/5.0 (iPhone\; CPU iPhone OS 12_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML\, like Gecko) Mobile/15E148, Airespace-Wlan-Id=1, AcsSessionID=aa-ise-psn-01/353699673/4971704, SelectedAccessService=Default Network Access, Step=11004, Step=11017, Step=15049, Step=15008, Step=22084, Step=11005, NetworkDeviceGroups=Location#All Locations#You Are Here#AA-WLC-Controllers, NetworkDeviceGroups=Device Type#All Device Types#Wireless#AA-Controllers, CPMSessionID=9b09cd0a0025d10dc3cb415d, Network Device Profile=Cisco, Location=Location#All Locations#You Are Here#AA-WLC-Controllers, Device Type=Device Type#All Device Types#Wireless#AA-Controllers," 
| rex field=_raw "Framed-IPv6-Address=(?&amp;lt;Framed_IPv6_Address&amp;gt;([0-9a-f]|:){1,4}(:([0-9a-f]{0,4})*){1,7})" max_match=0 | mvexpand Framed_IPv6_Address | table Framed_IPv6_Address
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:34:18 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2020-09-30T01:34:18Z</dc:date>
    <item>
      <title>mvexpand not working for IP6 field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423157#M121452</link>
      <description>&lt;P&gt;I have the Cisco ISE app loaded and there is a field, &lt;CODE&gt;Framed_IPv6_Address&lt;/CODE&gt; that may contain up to six IPv6 addresses. Raw event snippet looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Framed-IPv6-Address=&amp;lt;IPv6 value&amp;gt;, Framed-IPv6-Address=&amp;lt;IPv6 value&amp;gt;, Framed-IPv6-Address=&amp;lt;IPv6 value&amp;gt;, etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I try mvexpand &lt;CODE&gt;index=cisco sourcetype="cisco:ise:syslog" | mvexpand Framed_IPv6_Address&lt;/CODE&gt; I am getting some, but not all of the IPv6 addresses returned as values.&lt;/P&gt;

&lt;P&gt;Any ideas on how I can get all IPv6 values listed?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 20:28:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423157#M121452</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2019-07-31T20:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand not working for IP6 field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423158#M121453</link>
      <description>&lt;P&gt;Can you provide a sanitized example of your data results?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 21:20:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423158#M121453</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-07-31T21:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand not working for IP6 field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423159#M121454</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/103102"&gt;@jwalzerpitt&lt;/a&gt; &lt;/P&gt;

&lt;P&gt;If your raw event has multiple keys with the same name like &lt;CODE&gt;Framed-IPv6-Address&lt;/CODE&gt;  then Splunk auto extraction will extract that key with the first value. You have a similar case. So I suggest you extract manually using &lt;CODE&gt;rex&lt;/CODE&gt; command.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/SearchReference/Rex" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/SearchReference/Rex&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Can you please try below search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH | rex field=_raw "Framed-IPv6-Address=(?&amp;lt;Framed_IPv6_Address&amp;gt;(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4})" max_match=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will get all the IPV_6 in &lt;CODE&gt;Framed_IPv6_Address&lt;/CODE&gt; field.&lt;/P&gt;

&lt;P&gt;Try my sample search for more.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw="Framed-IPv6-Address=FE80:0000:0000:0000:0202:B3FF:FE1E:8329, Framed-IPv6-Address=1200:0000:AB00:1234:0000:2552:7777:1313, Framed-IPv6-Address=21DA:D3:0:2F3B:2AA:FF:FE28:9C5A  " | rex field=_raw "Framed-IPv6-Address=(?&amp;lt;Framed_IPv6_Address&amp;gt;(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4})" max_match=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;UPDATED:&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="Jul 31 16:04:30 10.10.10.10 CISE_RADIUS_Accounting 0004688970 1 0 2019-07-31 16:04:30.979 -04:00 0161383501 3001 NOTICE Radius-Accounting: RADIUS Accounting stop request, ConfigVersionId=31, Device IP Address=10.10.10.10, UserName=blah@foo.com, RequestLatency=3, NetworkDeviceName=AA-AAA-CONTROLLERS, User-Name=blah@foo.com, NAS-IP-Address=10.10.10.10, NAS-Port=8, Framed-IP-Address=10.10.10.10, Class=CACS:9b09cd0a0025d10dc3cb415d:aa-ise-psn-01/353699673/4606862, Called-Station-ID=80-87-55-ag-bd-90, Called-Station-ID=80-87-55-ag-bd-90:WIRELESS-BLAH, Calling-Station-ID=38-33-0b-11-42-2g, NAS-Identifier=aa-blah-1.wlc8510, Acct-Status-Type=Stop, Acct-Delay-Time=0, Acct-Input-Octets=10144748, Acct-Output-Octets=172482276, Acct-Session-Id=4a31cbc2/13:83:0b:19:81:2f/4160511, Acct-Authentic=RADIUS, Acct-Session-Time=10376, Acct-Input-Packets=42627, Acct-Output-Packets=144424, Acct-Terminate-Cause=User Request, Acct-Input-Gigawords=0, Acct-Output-Gigawords=0, Event-Timestamp=1564603470, NAS-Port-Type=Wireless - IEEE 802.11, Tunnel-Type=(tag=0) VLAN, Tunnel-Medium-Type=(tag=0) 802, Tunnel-Private-Group-ID=(tag=0) 3317, Framed-IPv6-Address=2620:101:200a:6bf4:c:be6a:2e6e:a010, Framed-IPv6-Address=2620:101:200b:2bf3:420b:c23a:b26e:b3bc, Framed-IPv6-Address=fe63::a4:38f9:bcd2:213a, Framed-IPv6-Address=2620:101:200e:2bf2:11b9:ca2b:1cb:a30a, Framed-IPv6-Address=2620:102:400e:1cf5:c6:a9f1:2013:fbef, Framed-IPv6-Address=2610:101:200b:1df3:14ab:831f:981:cbc2, cisco-av-pair=audit-session-id=9b09cd0a0025d10dc3cb415d, cisco-av-pair=dhcp-option=host-name=users-iPhone, cisco-av-pair=http-tlv=User-Agent=Mozilla/5.0 (iPhone\; CPU iPhone OS 12_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML\, like Gecko) Mobile/15E148, Airespace-Wlan-Id=1, AcsSessionID=aa-ise-psn-01/353699673/4971704, SelectedAccessService=Default Network Access, Step=11004, Step=11017, Step=15049, Step=15008, Step=22084, Step=11005, NetworkDeviceGroups=Location#All Locations#You Are Here#AA-WLC-Controllers, NetworkDeviceGroups=Device Type#All Device Types#Wireless#AA-Controllers, CPMSessionID=9b09cd0a0025d10dc3cb415d, Network Device Profile=Cisco, Location=Location#All Locations#You Are Here#AA-WLC-Controllers, Device Type=Device Type#All Device Types#Wireless#AA-Controllers," 
| rex field=_raw "Framed-IPv6-Address=(?&amp;lt;Framed_IPv6_Address&amp;gt;([0-9a-f]|:){1,4}(:([0-9a-f]{0,4})*){1,7})" max_match=0 | mvexpand Framed_IPv6_Address | table Framed_IPv6_Address
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423159#M121454</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2020-09-30T01:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand not working for IP6 field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423160#M121455</link>
      <description>&lt;P&gt;Sanitized event is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jul 31 16:04:30 10.10.10.10 CISE_RADIUS_Accounting 0004688970 1 0 2019-07-31 16:04:30.979 -04:00 0161383501 3001 NOTICE Radius-Accounting: RADIUS Accounting stop request, ConfigVersionId=31, Device IP Address=10.10.10.10, UserName=blah@foo.com, RequestLatency=3, NetworkDeviceName=AA-AAA-CONTROLLERS, User-Name=blah@foo.com, NAS-IP-Address=10.10.10.10, NAS-Port=8, Framed-IP-Address=10.10.10.10, Class=CACS:9b09cd0a0025d10dc3cb415d:aa-ise-psn-01/353699673/4606862, Called-Station-ID=80-87-55-ag-bd-90, Called-Station-ID=80-87-55-ag-bd-90:WIRELESS-BLAH, Calling-Station-ID=38-33-0b-11-42-2g, NAS-Identifier=aa-blah-1.wlc8510, Acct-Status-Type=Stop, Acct-Delay-Time=0, Acct-Input-Octets=10144748, Acct-Output-Octets=172482276, Acct-Session-Id=4a31cbc2/13:83:0b:19:81:2f/4160511, Acct-Authentic=RADIUS, Acct-Session-Time=10376, Acct-Input-Packets=42627, Acct-Output-Packets=144424, Acct-Terminate-Cause=User Request, Acct-Input-Gigawords=0, Acct-Output-Gigawords=0, Event-Timestamp=1564603470, NAS-Port-Type=Wireless - IEEE 802.11, Tunnel-Type=(tag=0) VLAN, Tunnel-Medium-Type=(tag=0) 802, Tunnel-Private-Group-ID=(tag=0) 3317, Framed-IPv6-Address=2620:101:200a:6bf4:c:be6a:2e6e:a010, Framed-IPv6-Address=2620:101:200b:2bf3:420b:c23a:b26e:b3bc, Framed-IPv6-Address=fe63::a4:38f9:bcd2:213a, Framed-IPv6-Address=2620:101:200e:2bf2:11b9:ca2b:1cb:a30a, Framed-IPv6-Address=2620:102:400e:1cf5:c6:a9f1:2013:fbef, Framed-IPv6-Address=2610:101:200b:1df3:14ab:831f:981:cbc2, cisco-av-pair=audit-session-id=9b09cd0a0025d10dc3cb415d, cisco-av-pair=dhcp-option=host-name=users-iPhone, cisco-av-pair=http-tlv=User-Agent=Mozilla/5.0 (iPhone\; CPU iPhone OS 12_3_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML\, like Gecko) Mobile/15E148, Airespace-Wlan-Id=1, AcsSessionID=aa-ise-psn-01/353699673/4971704, SelectedAccessService=Default Network Access, Step=11004, Step=11017, Step=15049, Step=15008, Step=22084, Step=11005, NetworkDeviceGroups=Location#All Locations#You Are Here#AA-WLC-Controllers, NetworkDeviceGroups=Device Type#All Device Types#Wireless#AA-Controllers, CPMSessionID=9b09cd0a0025d10dc3cb415d, Network Device Profile=Cisco, Location=Location#All Locations#You Are Here#AA-WLC-Controllers, Device Type=Device Type#All Device Types#Wireless#AA-Controllers, 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are six IPv6 addresses that I should have values for the Framed-IPv6-Address field, but only the first one is returned.&lt;/P&gt;

&lt;P&gt;I tried running the regex kamlesh suggested - &lt;CODE&gt;| rex field=_raw "Framed-IPv6-Address=(?&amp;lt;Framed_IPv6_Address&amp;gt;(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4})" max_match=0&lt;/CODE&gt; and I still only get one IPv6 address value returned&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 12:34:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423160#M121455</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2019-08-01T12:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand not working for IP6 field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423161#M121456</link>
      <description>&lt;P&gt;Kamelsh,&lt;/P&gt;

&lt;P&gt;Please see reply to jnudell_2 as the suggested regex you provided (thx for that) is not pulling all six IPv6 addresses from the event&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 12:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423161#M121456</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2019-08-01T12:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand not working for IP6 field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423162#M121457</link>
      <description>&lt;P&gt;@jwalzerpitt&lt;/P&gt;

&lt;P&gt;I have updated my answer. Can you please try that?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 13:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423162#M121457</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-08-01T13:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: mvexpand not working for IP6 field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423163#M121458</link>
      <description>&lt;P&gt;That worked&lt;/P&gt;

&lt;P&gt;I modified my search to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search
| rex field=_raw "Framed-IPv6-Address=(?&amp;lt;Framed_IPv6_Address&amp;gt;([0-9a-f]|:){1,4}(:([0-9a-f]{0,4})*){1,7})" max_match=0 
| mvexpand Framed_IPv6_Address 
| table Framed_IPv6_Address
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and all six IPv6 addresses were returned as values&lt;/P&gt;

&lt;P&gt;How do you recommend that I convert this to an automatic search time extraction?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 13:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/mvexpand-not-working-for-IP6-field/m-p/423163#M121458</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2019-08-01T13:55:08Z</dc:date>
    </item>
  </channel>
</rss>

