<?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 Splitting Multi-Value and Multi-Line field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splitting-Multi-Value-and-Multi-Line-field/m-p/628346#M218266</link>
    <description>&lt;P&gt;I have a list of chrome extensions that are installed that is returned in a multivalue field. One of the results looks like this:&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-01-25 at 2.45.46 PM.png" style="width: 351px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23540i7D898DCE562E0801/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-01-25 at 2.45.46 PM.png" alt="Screenshot 2023-01-25 at 2.45.46 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;All I really care about is the extension name so I was able to run this query to use rex to extract the names of all the extensions:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;index=jamf source=jss_inventory "extensionAttribute.name"="Installed Chrome Extensions &amp;amp; Versions"&lt;BR /&gt;| fields extensionAttribute.name, computer_meta.assignedUser&lt;BR /&gt;| rex field=extensionAttribute.value max_match=0 "Name: (?&amp;lt;extensions&amp;gt;.*)\n"&lt;BR /&gt;| table extensions&lt;/P&gt;
&lt;P&gt;This returns:&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-01-25 at 2.48.50 PM.png" style="width: 344px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23541i4C3B1EB9F38712AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-01-25 at 2.48.50 PM.png" alt="Screenshot 2023-01-25 at 2.48.50 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can I further extract these extensions in this multi-value field.&amp;nbsp; I can't get mvexpand to work because it says that the new extensions field I created doesn't exist in the data. I can't figure out how to extract each line as a separate result so that I can dedup and get a full list of all installed extensions.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 00:08:08 GMT</pubDate>
    <dc:creator>daveywfii</dc:creator>
    <dc:date>2023-01-26T00:08:08Z</dc:date>
    <item>
      <title>Splitting Multi-Value and Multi-Line field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-Multi-Value-and-Multi-Line-field/m-p/628346#M218266</link>
      <description>&lt;P&gt;I have a list of chrome extensions that are installed that is returned in a multivalue field. One of the results looks like this:&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-01-25 at 2.45.46 PM.png" style="width: 351px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23540i7D898DCE562E0801/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-01-25 at 2.45.46 PM.png" alt="Screenshot 2023-01-25 at 2.45.46 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;All I really care about is the extension name so I was able to run this query to use rex to extract the names of all the extensions:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;index=jamf source=jss_inventory "extensionAttribute.name"="Installed Chrome Extensions &amp;amp; Versions"&lt;BR /&gt;| fields extensionAttribute.name, computer_meta.assignedUser&lt;BR /&gt;| rex field=extensionAttribute.value max_match=0 "Name: (?&amp;lt;extensions&amp;gt;.*)\n"&lt;BR /&gt;| table extensions&lt;/P&gt;
&lt;P&gt;This returns:&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-01-25 at 2.48.50 PM.png" style="width: 344px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23541i4C3B1EB9F38712AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-01-25 at 2.48.50 PM.png" alt="Screenshot 2023-01-25 at 2.48.50 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can I further extract these extensions in this multi-value field.&amp;nbsp; I can't get mvexpand to work because it says that the new extensions field I created doesn't exist in the data. I can't figure out how to extract each line as a separate result so that I can dedup and get a full list of all installed extensions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 00:08:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-Multi-Value-and-Multi-Line-field/m-p/628346#M218266</guid>
      <dc:creator>daveywfii</dc:creator>
      <dc:date>2023-01-26T00:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Multi-Value and Multi-Line field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-Multi-Value-and-Multi-Line-field/m-p/628354#M218267</link>
      <description>&lt;P&gt;mvexpand should work&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=jamf source=jss_inventory "extensionAttribute.name"="Installed Chrome Extensions &amp;amp; Versions"
| fields extensionAttribute.name, computer_meta.assignedUser
| rex field=extensionAttribute.value max_match=0 "Name: (?&amp;lt;extensions&amp;gt;.*)\n"
| table extensions
| mvexpand extensions&lt;/LI-CODE&gt;&lt;P&gt;Do you get an error?&lt;/P&gt;&lt;P&gt;Alternatively, you could try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=jamf source=jss_inventory "extensionAttribute.name"="Installed Chrome Extensions &amp;amp; Versions"
| fields extensionAttribute.name, computer_meta.assignedUser
| rex field=extensionAttribute.value max_match=0 "Name: (?&amp;lt;extensions&amp;gt;.*)\n"
| stats count by extensions
| fields - count&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 Jan 2023 22:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-Multi-Value-and-Multi-Line-field/m-p/628354#M218267</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-25T22:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Multi-Value and Multi-Line field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-Multi-Value-and-Multi-Line-field/m-p/628359#M218270</link>
      <description>&lt;P&gt;The mvexpand doesn't work. No errors, but it doesn't return anything.&amp;nbsp; Your second suggestion inexplicably did&amp;nbsp; work, but I don't understand why.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 00:11:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-Multi-Value-and-Multi-Line-field/m-p/628359#M218270</guid>
      <dc:creator>daveywfii</dc:creator>
      <dc:date>2023-01-26T00:11:05Z</dc:date>
    </item>
  </channel>
</rss>

