<?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 How to extract multivalue identity fields into their own identities in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multivalue-identity-fields-into-their-own/m-p/474133#M81418</link>
    <description>&lt;P&gt;The following is a section of an larger JSON data source digested into our Splunk instance:&lt;/P&gt;

&lt;P&gt;"identities": [{"issuerAssignedId": "&lt;A href="mailto:bob.smith@gmail.com"&gt;bob.smith@gmail.com&lt;/A&gt;", "issuer": "domain.onmicrosoft.com", "signInType": "emailAddress"}, {"issuerAssignedId": "&lt;A href="mailto:0023587453958742158@domain.onmicrosoft.com"&gt;0023587453958742158@domain.onmicrosoft.com&lt;/A&gt;", "issuer": "domain.onmicrosoft.com", "signInType": "userPrincipalName"}]&lt;/P&gt;

&lt;P&gt;The problem is this data ends up in three multi-valued fields:&lt;/P&gt;

&lt;P&gt;identities{}.issuer&lt;BR /&gt;
identities{}.issuerAssignedId&lt;BR /&gt;
identities{}.signInType&lt;/P&gt;

&lt;P&gt;I need to extract the "identities{}.issuerAssignedId" into their own fields as separate identities.  Is this something that can be done at search time, or do I need to add a transform somewhere?  If a transform is needed, what could that look like?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2020 13:50:20 GMT</pubDate>
    <dc:creator>cpalicensing</dc:creator>
    <dc:date>2020-02-19T13:50:20Z</dc:date>
    <item>
      <title>How to extract multivalue identity fields into their own identities</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multivalue-identity-fields-into-their-own/m-p/474133#M81418</link>
      <description>&lt;P&gt;The following is a section of an larger JSON data source digested into our Splunk instance:&lt;/P&gt;

&lt;P&gt;"identities": [{"issuerAssignedId": "&lt;A href="mailto:bob.smith@gmail.com"&gt;bob.smith@gmail.com&lt;/A&gt;", "issuer": "domain.onmicrosoft.com", "signInType": "emailAddress"}, {"issuerAssignedId": "&lt;A href="mailto:0023587453958742158@domain.onmicrosoft.com"&gt;0023587453958742158@domain.onmicrosoft.com&lt;/A&gt;", "issuer": "domain.onmicrosoft.com", "signInType": "userPrincipalName"}]&lt;/P&gt;

&lt;P&gt;The problem is this data ends up in three multi-valued fields:&lt;/P&gt;

&lt;P&gt;identities{}.issuer&lt;BR /&gt;
identities{}.issuerAssignedId&lt;BR /&gt;
identities{}.signInType&lt;/P&gt;

&lt;P&gt;I need to extract the "identities{}.issuerAssignedId" into their own fields as separate identities.  Is this something that can be done at search time, or do I need to add a transform somewhere?  If a transform is needed, what could that look like?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 13:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multivalue-identity-fields-into-their-own/m-p/474133#M81418</guid>
      <dc:creator>cpalicensing</dc:creator>
      <dc:date>2020-02-19T13:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multivalue identity fields into their own identities</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multivalue-identity-fields-into-their-own/m-p/474134#M81419</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;your search
| rename identities{}.* as *
| table issuer issuerAssignedId signInType
| eval counter=mvrange(0, mvcount(issuerAssignedId))
| mvexpand counter
| rename counter as _counter
| foreach * [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; = mvindex('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;', _counter)]
| fields - _counter
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 29 Feb 2020 00:35:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multivalue-identity-fields-into-their-own/m-p/474134#M81419</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-29T00:35:08Z</dc:date>
    </item>
  </channel>
</rss>

