<?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: Creating multiple fields by extracting values from single field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-multiple-fields-by-extracting-values-from-single-field/m-p/431605#M170711</link>
    <description>&lt;P&gt;Ranith...with slight adjustment for my use case....it worked perfectly...THANK YOU!!!! I will be reaching out to you for alike RegEx assistance if I may? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Jun 2019 13:21:15 GMT</pubDate>
    <dc:creator>mbasharat</dc:creator>
    <dc:date>2019-06-16T13:21:15Z</dc:date>
    <item>
      <title>Creating multiple fields by extracting values from single field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-multiple-fields-by-extracting-values-from-single-field/m-p/431603#M170709</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a field name Family. This field contain names of husband and wife in below Figure 1 format:&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/7220i2AEA831249352A81/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;All values for field “Family” are populated in above format. In value 1, Newman is the Last Name for both husband and wife. In value 2, Stewart is the Last Name for both husband and wife. Likewise will be for the rest of the values.&lt;/P&gt;

&lt;P&gt;What I need is, from one Family field value, I need to extract Husband’s Full Name, Husband’s First Name, Husband’s Middle Initial, Husband’s Last Name, Wife’s Full Name, Wife’s Middle Initial, Wife’s Last Name in below Figure 2 format, how? &lt;/P&gt;

&lt;P&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/7221iA8103CE8539A6708/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;RegEx gives headache but if I have to have it then still ok but multiple evals will be better because it is easily understandable.&lt;/P&gt;

&lt;P&gt;Thanks in-advance for assistance!!!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 05:30:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-multiple-fields-by-extracting-values-from-single-field/m-p/431603#M170709</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2019-06-16T05:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple fields by extracting values from single field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-multiple-fields-by-extracting-values-from-single-field/m-p/431604#M170710</link>
      <description>&lt;P&gt;@mbasharat ,&lt;/P&gt;

&lt;P&gt;If the format of the field is same across all events, try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=Family "(?&amp;lt;Husband_First_Name&amp;gt;\w+)\s+(?&amp;lt;Husband_Middle_Name&amp;gt;\w+)\s+&amp;amp;\s+(?&amp;lt;Wife_First_Name&amp;gt;\w+)\s+(?&amp;lt;Wife_Middle_Name&amp;gt;\w+)\s+(?&amp;lt;LastName&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Once the fields are available, you can concatenate them for e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval Husband_Name=Husband_First_Name." ".Husband_Middle_Name." ".LastName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Jun 2019 09:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-multiple-fields-by-extracting-values-from-single-field/m-p/431604#M170710</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-06-16T09:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple fields by extracting values from single field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-multiple-fields-by-extracting-values-from-single-field/m-p/431605#M170711</link>
      <description>&lt;P&gt;Ranith...with slight adjustment for my use case....it worked perfectly...THANK YOU!!!! I will be reaching out to you for alike RegEx assistance if I may? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 13:21:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-multiple-fields-by-extracting-values-from-single-field/m-p/431605#M170711</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2019-06-16T13:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple fields by extracting values from single field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-multiple-fields-by-extracting-values-from-single-field/m-p/431606#M170712</link>
      <description>&lt;P&gt;Also, is there a free tool or web portal where I can create these RegExs conveniently?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 13:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-multiple-fields-by-extracting-values-from-single-field/m-p/431606#M170712</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2019-06-16T13:22:40Z</dc:date>
    </item>
  </channel>
</rss>

