<?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: How to extract multiple values from a single value in a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-a-single-value-in-a-field/m-p/599497#M208672</link>
    <description>&lt;P&gt;Thanks, this helped alot. Do you know how to extract a sentence? For example if the risk type was Type - Monitor User Activity Type - USB I would want a value with: "Type - Monitor User Activity" and "Type - USB". This solution only gives me "Type - Monitor" in this scenario&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2022 20:05:06 GMT</pubDate>
    <dc:creator>xoamanda12xo</dc:creator>
    <dc:date>2022-05-26T20:05:06Z</dc:date>
    <item>
      <title>How to extract multiple values from a single value in a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-a-single-value-in-a-field/m-p/599339#M208645</link>
      <description>&lt;P&gt;I have a field called "Risk Type" that has categorical data associated with the type of risk of an event. For example, for one event it might say "Type - Network", but for another event that has more than one risk type it will say "Type - Network Type - USB Type - Data" where the three risk types are in a single value. What I want to do is to extract each type as a separate value, so for event X there would be three entries for each type. Ex: Event X Type - Network&lt;/P&gt;
&lt;P&gt;Event X Type - USB&lt;/P&gt;
&lt;P&gt;Event X Type - Data&lt;/P&gt;
&lt;P&gt;I tried doing mvexpand but this did not separate each type into multiple values. I also thought of using the rex command but I do not know what the regular expression would be to do this. How do I accomplish this?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 20:11:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-a-single-value-in-a-field/m-p/599339#M208645</guid>
      <dc:creator>xoamanda12xo</dc:creator>
      <dc:date>2022-05-26T20:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values from a single value in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-a-single-value-in-a-field/m-p/599344#M208647</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command will work.&amp;nbsp; Just provide a regex for a single match and include the &lt;FONT face="courier new,courier"&gt;max_match=0&lt;/FONT&gt; option and rex will return multiple hits.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 field='Risk Type' "Type - (?&amp;lt;riskType&amp;gt;\w+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 May 2022 19:26:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-a-single-value-in-a-field/m-p/599344#M208647</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-05-25T19:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values from a single value in a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-a-single-value-in-a-field/m-p/599346#M208648</link>
      <description>&lt;P&gt;Try the following. Should give you what you're looking for.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 field=risk_type "(?&amp;lt;risk_type&amp;gt;Type(?:(?!Type)[\s\S])*)"
| mvexpand risk_type&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;###If this helps, kindly consider an upvote/accepting as an answer###&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 09:58:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-a-single-value-in-a-field/m-p/599346#M208648</guid>
      <dc:creator>shivanshu1593</dc:creator>
      <dc:date>2022-05-27T09:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values from a single value in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-a-single-value-in-a-field/m-p/599497#M208672</link>
      <description>&lt;P&gt;Thanks, this helped alot. Do you know how to extract a sentence? For example if the risk type was Type - Monitor User Activity Type - USB I would want a value with: "Type - Monitor User Activity" and "Type - USB". This solution only gives me "Type - Monitor" in this scenario&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 20:05:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-a-single-value-in-a-field/m-p/599497#M208672</guid>
      <dc:creator>xoamanda12xo</dc:creator>
      <dc:date>2022-05-26T20:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple values from a single value in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-a-single-value-in-a-field/m-p/599557#M208693</link>
      <description>&lt;P&gt;I've updated the regex above. Please try that. Should extract the sentences that you listed as examples. If it needs more modification, kindly share some sample data to create an accurate regex.&lt;/P&gt;&lt;P&gt;###If it helps, kindly consider mark as accepted answer###&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 09:57:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multiple-values-from-a-single-value-in-a-field/m-p/599557#M208693</guid>
      <dc:creator>shivanshu1593</dc:creator>
      <dc:date>2022-05-27T09:57:56Z</dc:date>
    </item>
  </channel>
</rss>

