<?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: Multivalue Field Extraction in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multivalue-Field-Extraction/m-p/478140#M82069</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;index="o365data" dataset_name=account_management  SkuName ServiceInstance DisabledPlans AssignedLicense
| rex "SkuName=(?&amp;lt;SkuName&amp;gt;[^,]*)"
| rex "ServiceInstance\":\s*(?&amp;lt;ServiceInstance&amp;gt;[^,]*)"
| rex "DisabledPlans=(?&amp;lt;DisabledPlans&amp;gt;\[.*?\])"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Feb 2020 09:20:22 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-02-26T09:20:22Z</dc:date>
    <item>
      <title>Multivalue Field Extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multivalue-Field-Extraction/m-p/478139#M82068</link>
      <description>&lt;P&gt;Need help with parsing out some events from our exchange data where we want to track license changes on exchange accounts. I’m able to pinpoint the events but having a hard time pulling specific data out of a multivalue fields.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Current Search String:&lt;/STRONG&gt;&lt;BR /&gt;
index="o365data" dataset_name=account_management | spath "ExtendedProperties{}.Name" | search "ExtendedProperties{}.Value"="[\"AssignedLicense\",\"AssignedPlan\",\"TargetId.UserType\"]"  | spath "ModifiedProperties{}.Name" | search "ModifiedProperties{}.Name"=AssignedLicense | table _time, UserId, Operation, ObjectId, ModifiedProperties{}.NewValue, ModifiedProperties{}.OldValue | sort _time desc&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Example Output:&lt;/STRONG&gt;&lt;BR /&gt;
**&lt;BR /&gt;
*&lt;EM&gt;**_time:&lt;/EM&gt;* 2020-02-20 08:40:50&lt;BR /&gt;
&lt;STRONG&gt;UserId:&lt;/STRONG&gt; &lt;A href="mailto:xxx@domain.ca" target="_blank"&gt;xxx@domain.ca&lt;/A&gt;&lt;BR /&gt;
&lt;STRONG&gt;Operation:&lt;/STRONG&gt; Update user.&lt;BR /&gt;
&lt;STRONG&gt;ObjectId:&lt;/STRONG&gt; &lt;A href="mailto:xxxx@domain.ca" target="_blank"&gt;xxxx@domain.ca&lt;/A&gt;&lt;BR /&gt;
&lt;STRONG&gt;ModifiedProperties{}.NewValue:&lt;/STRONG&gt; [ "[SkuName=O365_BUSINESS_ESSENTIALS, AccountId=xxx SkuId=3b555118-da6a-4418-894f-7df1e2096870, DisabledPlans=[WHITEBOARD_PLAN1,MYANALYTICS_P2,KAIZALA_O365_P2,STREAM_O365_SMB,OFFICEMOBILE_SUBSCRIPTION,BPOS_S_TODO_1,FORMS_PLAN_E1,FLOW_O365_P1,POWERAPPS_O365_P1,PROJECTWORKMANAGEMENT,SWAY,SHAREPOINTWAC,YAMMER_ENTERPRISE,MCOSTANDARD,SHAREPOINTSTANDARD]]" ]&lt;BR /&gt;
[ { "SubscribedPlanId": "9738cc87-6e16-4861-9486-32ebdda261d1", "ServiceInstance": "Exchange/namprd17-001-01", "CapabilityStatus": 0, "AssignedTimestamp": "2020-02-20T14:40:50.0728559Z", "InitialState": null, "Capability": null, "ServicePlanId": "9aaf7827-d63c-4b61-89c3-182f06f82e5c" }, { "SubscribedPlanId": "502e8918-06b9-453d-a44b-9fc4920b0f20", "ServiceInstance": "TeamspaceAPI/NA001", "CapabilityStatus": 0, "AssignedTimestamp": "2020-02-20T14:40:50.0728559Z", "InitialState": null, "Capability": null, "ServicePlanId": "57ff2da0-773e-42df-b2af-ffb7a2317929" } ]&lt;BR /&gt;
AssignedLicense, AssignedPlan&lt;BR /&gt;
Member  &lt;/P&gt;

&lt;P&gt;We just want the “SkuName” (“0365_BUSINESS_ESSENTIALS” from example), “ServiceInstance” (“Exchange/namprd17-001-01” / “TeamspaceAPI/NA001” from example), and “DisabledPlans” (“WHITEBOARD_PLAN1” / “MYANALYTICS_P2” / etc.. from example).&lt;/P&gt;

&lt;P&gt;Would someone be able to provide some assistance with this?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multivalue-Field-Extraction/m-p/478139#M82068</guid>
      <dc:creator>joeybroesky</dc:creator>
      <dc:date>2020-09-30T04:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue Field Extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multivalue-Field-Extraction/m-p/478140#M82069</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="o365data" dataset_name=account_management  SkuName ServiceInstance DisabledPlans AssignedLicense
| rex "SkuName=(?&amp;lt;SkuName&amp;gt;[^,]*)"
| rex "ServiceInstance\":\s*(?&amp;lt;ServiceInstance&amp;gt;[^,]*)"
| rex "DisabledPlans=(?&amp;lt;DisabledPlans&amp;gt;\[.*?\])"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Feb 2020 09:20:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multivalue-Field-Extraction/m-p/478140#M82069</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-26T09:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue Field Extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multivalue-Field-Extraction/m-p/478141#M82070</link>
      <description>&lt;P&gt;We ended up using the following:&lt;/P&gt;

&lt;P&gt;index="o365data" dataset_name=account_management AssignedLicense&lt;BR /&gt;
| spath "ModifiedProperties{}" | search *&lt;BR /&gt;
| search UserId="&lt;EM&gt;teamsystems.ca"&lt;BR /&gt;
| dedup _time&lt;BR /&gt;
| rex "(?P((?&amp;lt;=NewValue)(.&lt;/EM&gt;?)(?=OldValue)))" max_match=0&lt;BR /&gt;
| rex "(?P((?&amp;lt;=OldValue)(.&lt;EM&gt;?)(?=Name....AssignedPlan)))" max_match=0&lt;BR /&gt;
| rex field="NewLicenses" "[SkuName=(?P[^,]&lt;/EM&gt;)" max_match=0&lt;BR /&gt;
| rex field="OldLicenses" "[SkuName=(?P[^,]*)" max_match=0&lt;BR /&gt;
| table _time, ObjectId, Old, New, UserId&lt;BR /&gt;
| rename New as "New License Applied", Old as "Old License Applied", UserId as "Administrator Making Change", ObjectId as "Account Changed"&lt;/P&gt;

&lt;P&gt;Thanks for your help to4kawa! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:31:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multivalue-Field-Extraction/m-p/478141#M82070</guid>
      <dc:creator>joeybroesky</dc:creator>
      <dc:date>2020-09-30T04:31:54Z</dc:date>
    </item>
  </channel>
</rss>

