<?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 Multivalue field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252108#M75399</link>
    <description>&lt;P&gt;Hi,  I'm struggling to get this extracted correctly so it's usable.&lt;BR /&gt;
The raw data is presented as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    Privileges: SeSecurityPrivilege
            SeBackupPrivilege
            SeRestorePrivilege
            SeTakeOwnershipPrivilege
            SeDebugPrivilege
            SeSystemEnvironmentPrivilege
            SeLoadDriverPrivilege
            SeImpersonatePrivilege
            SeAssignPrimaryTokenPrivilege
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By default, only the first entry is assigned to the field eg:&lt;/P&gt;

&lt;P&gt;"&lt;STRONG&gt;SeSecurityPrivilege&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;I can extract the remaining lines into the field using the regex "Privileges:\t(?P(\w+\s+|\t\t\t\w+\s+)+)", which returns this:&lt;/P&gt;

&lt;P&gt;"&lt;STRONG&gt;SeSecurityPrivilege SeBackupPrivilege SeRestorePrivilege SeTakeOwnershipPrivilege SeDebugPrivilege SeSystemEnvironmentPrivilege SeLoadDriverPrivilege SeImpersonatePrivilege&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;Now what I need is to split each of these into the Privileges field as separate values.&lt;/P&gt;

&lt;P&gt;These values are not a static number of entries, so Privileges could contain anything between 1 and 10 lines.&lt;/P&gt;

&lt;P&gt;Any advice would be great as the docs and answers I've read don't seem to help this situation.&lt;/P&gt;

&lt;P&gt;TIA&lt;BR /&gt;
Steve&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2016 08:51:15 GMT</pubDate>
    <dc:creator>cdstealer</dc:creator>
    <dc:date>2016-03-18T08:51:15Z</dc:date>
    <item>
      <title>Multivalue field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252108#M75399</link>
      <description>&lt;P&gt;Hi,  I'm struggling to get this extracted correctly so it's usable.&lt;BR /&gt;
The raw data is presented as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    Privileges: SeSecurityPrivilege
            SeBackupPrivilege
            SeRestorePrivilege
            SeTakeOwnershipPrivilege
            SeDebugPrivilege
            SeSystemEnvironmentPrivilege
            SeLoadDriverPrivilege
            SeImpersonatePrivilege
            SeAssignPrimaryTokenPrivilege
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By default, only the first entry is assigned to the field eg:&lt;/P&gt;

&lt;P&gt;"&lt;STRONG&gt;SeSecurityPrivilege&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;I can extract the remaining lines into the field using the regex "Privileges:\t(?P(\w+\s+|\t\t\t\w+\s+)+)", which returns this:&lt;/P&gt;

&lt;P&gt;"&lt;STRONG&gt;SeSecurityPrivilege SeBackupPrivilege SeRestorePrivilege SeTakeOwnershipPrivilege SeDebugPrivilege SeSystemEnvironmentPrivilege SeLoadDriverPrivilege SeImpersonatePrivilege&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;Now what I need is to split each of these into the Privileges field as separate values.&lt;/P&gt;

&lt;P&gt;These values are not a static number of entries, so Privileges could contain anything between 1 and 10 lines.&lt;/P&gt;

&lt;P&gt;Any advice would be great as the docs and answers I've read don't seem to help this situation.&lt;/P&gt;

&lt;P&gt;TIA&lt;BR /&gt;
Steve&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:51:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252108#M75399</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2016-03-18T08:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252109#M75400</link>
      <description>&lt;P&gt;try :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  your_base_search|rex field=_raw "Privileges:\t(?P&amp;lt;Privileges&amp;gt;(\w+\s+|\t\t\t\w+\s+)+)"| eval Privileges=split(field_name_extraction, " ")| mvexpand Privileges|...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Mar 2016 09:25:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252109#M75400</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2016-03-18T09:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252110#M75401</link>
      <description>&lt;P&gt;Hi fdi01,  Thanks. Unfortunately this does not change the output.  &lt;/P&gt;

&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 10:26:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252110#M75401</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2016-03-18T10:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252111#M75402</link>
      <description>&lt;P&gt;your rex &lt;CODE&gt;|rex field=_raw "Privileges:\t(?P&amp;lt;Privileges&amp;gt;(\w+\s+|\t\t\t\w+\s+)+)"|&lt;/CODE&gt; capture all results in  Privileges field ???&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 11:26:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252111#M75402</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2016-03-18T11:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252112#M75403</link>
      <description>&lt;P&gt;This is what I'm getting.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1152i7003907CF2E849EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 11:52:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252112#M75403</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2016-03-18T11:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252113#M75404</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main EventCode="576" |rex field=_raw "Privileges:\t(?P&amp;lt;Privileges&amp;gt;(\w+\s+|\t\t\t\w+\s+)+)" | rex field=Privileges max_match=0 "(?&amp;lt;Privilege&amp;gt;\S+)\s+" | mvexpand Privilege
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Mar 2016 14:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252113#M75404</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-18T14:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252114#M75405</link>
      <description>&lt;P&gt;Hi cdstealer&lt;/P&gt;

&lt;P&gt;Try to add this, after your field extraction.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;main search | rex field=_raw ... | makemv delim=" " Privileges | mvexpand Privileges 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 14:17:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252114#M75405</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2016-03-18T14:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252115#M75406</link>
      <description>&lt;P&gt;Perfect!  I think you've solved a couple of my past questions.  So thank you very much again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 17:09:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252115#M75406</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2016-03-18T17:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252116#M75407</link>
      <description>&lt;P&gt;Thanks to everyone that has offered help.  Much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 17:10:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252116#M75407</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2016-03-18T17:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252117#M75408</link>
      <description>&lt;P&gt;Hi again,  Now I'm struggling transferring the search into props/transforms.  I'm probably missing something simple.&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-Privileges = Privileges:\t(?P&amp;lt;Privileges&amp;gt;(\w+\s+|\t\t\t\w+\s+)+)
REPORT-fields = privilege
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[privilege]
SOURCE_KEY = Privileges
REGEX = "(?&amp;lt;privilege&amp;gt;\S+)\s+)
REPEAT_MATCH = true
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So the new field that contains the extracted values is not happening.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 07:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252117#M75408</guid>
      <dc:creator>cdstealer</dc:creator>
      <dc:date>2016-03-21T07:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252118#M75409</link>
      <description>&lt;P&gt;Hello, did you manage to solve this ? &lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 08:45:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252118#M75409</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2016-04-06T08:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252119#M75410</link>
      <description>&lt;P&gt;You have an extra &lt;CODE&gt;"&lt;/CODE&gt; in front of your &lt;CODE&gt;REGEX&lt;/CODE&gt; in &lt;CODE&gt;transforms.conf&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 03:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-extraction/m-p/252119#M75410</guid>
      <dc:creator>skawasaki_splun</dc:creator>
      <dc:date>2018-06-22T03:52:22Z</dc:date>
    </item>
  </channel>
</rss>

