<?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: Multi Valued Field Help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445955#M126535</link>
    <description>&lt;P&gt;Show us 1 full sample event and also the SPL that you are using.&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2019 17:20:01 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-05-02T17:20:01Z</dc:date>
    <item>
      <title>Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445948#M126528</link>
      <description>&lt;P&gt;I have looked at a ton of posts about breaking a multivalued field but having zero luck effecting a solution.  I have a csv file that i have imported into splunk.  In one of the fields, it contains data like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Subject Name: Country: US State/Province: Virginia Locality: Glen Allen 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I thought i could do field extractions to turn things like Country: into a field with the value of US, but no luck.  I have looked at eval, split, regex, and mvexpand but can't seem to get the right combo/syntax to do what i want.  Can someone lend me their expertise in resolving?&lt;/P&gt;

&lt;P&gt;Ideally once i break this field up into its individual pieces i want to create a dashboard that check one of them and ties it to all its records.  Worry for another day if i can't break up the field.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 15:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445948#M126528</guid>
      <dc:creator>ghostdog920</dc:creator>
      <dc:date>2019-05-02T15:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445949#M126529</link>
      <description>&lt;P&gt;This is a bit unclear, assuming you extract the country value from the example you have shown above into a new field using rex ,let's call it cntry. Now, for each column of the CSV having this field you should get your values for cntry.&lt;BR /&gt;
Can you elaborate a bit more?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 16:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445949#M126529</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-05-02T16:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445950#M126530</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "Country:\s+(?&amp;lt;Country&amp;gt;.*?)\s+State\/Province:\s+(?&amp;lt;State&amp;gt;.*?)\s+Locality:\s+(?&amp;lt;Locality&amp;gt;.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 May 2019 16:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445950#M126530</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-02T16:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445951#M126531</link>
      <description>&lt;P&gt;Can definitely elaborate.  Basically we are using Nessus to scan the environment for SSL certificates with the idea of creating a report to identify certs that will be expiring.  So the output from nessus is say 10 columns (what i am calling fields) comma delimited that Splunk picks up on.  Unfortunately one of those columns houses the elements that individually house about 10 attributes i really want to pull out as fields.  I.E. Subject Name:, Common Name:, Country:, State/province:, Issue Date:, etc.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 16:53:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445951#M126531</guid>
      <dc:creator>ghostdog920</dc:creator>
      <dc:date>2019-05-02T16:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445952#M126532</link>
      <description>&lt;P&gt;WIth this expression, and excuse my ignorance, the rex creates extractions that go where?   Or maybe a better way to ask is if i do that and don't see fields created for the attributes, how do i reference those rex values for a table (as an example)?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 16:55:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445952#M126532</guid>
      <dc:creator>ghostdog920</dc:creator>
      <dc:date>2019-05-02T16:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445953#M126533</link>
      <description>&lt;P&gt;it should be visible in the left hand side or append &lt;CODE&gt;|table Country,State,Locality&lt;/CODE&gt;&lt;BR /&gt;
Are you able to see those values in a table now?  &lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 17:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445953#M126533</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-05-02T17:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445954#M126534</link>
      <description>&lt;P&gt;Ok, unfortunately I do not see those "fields" if you will on the left side nav bar, nor does the table output anything other than the headers with no data.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 17:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445954#M126534</guid>
      <dc:creator>ghostdog920</dc:creator>
      <dc:date>2019-05-02T17:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445955#M126535</link>
      <description>&lt;P&gt;Show us 1 full sample event and also the SPL that you are using.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 17:20:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445955#M126535</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-02T17:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445956#M126536</link>
      <description>&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/7012iB0D46EE87652DCCF/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;&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/7013i8A11D805A336A4E8/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>Thu, 02 May 2019 17:26:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445956#M126536</guid>
      <dc:creator>ghostdog920</dc:creator>
      <dc:date>2019-05-02T17:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445957#M126537</link>
      <description>&lt;P&gt;Is this legible enough?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 17:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445957#M126537</guid>
      <dc:creator>ghostdog920</dc:creator>
      <dc:date>2019-05-02T17:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445958#M126538</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;index=nessus|rename "Plugin Output" as plug_out| rex field=_plug_out"Country:\s+(?&amp;lt;Country&amp;gt;.*?)\s+State\/Province:\s+(?&amp;lt;State&amp;gt;.*?)\s+Locality:\s+(?&amp;lt;Locality&amp;gt;.*)$"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;@woodcock 's rex is correct and will work. check using table&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 17:35:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445958#M126538</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-05-02T17:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445959#M126539</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval plug_out="Subject Name: Country: US State/Province: Virginia Locality: Glen Allen" 
| rex field=plug_out "Country:\s+(?&amp;lt;Country&amp;gt;.*?)\s+State\/Province:\s+(?&amp;lt;State&amp;gt;.*?)\s+Locality:\s+(?&amp;lt;Locality&amp;gt;.*)$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 May 2019 19:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445959#M126539</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-05-02T19:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445960#M126540</link>
      <description>&lt;P&gt;Still no go.  Thanks for all your help with this though as i wouldn't have gotten this far without you.&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/7014i998E920C3EFEEFC4/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>Thu, 02 May 2019 19:22:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445960#M126540</guid>
      <dc:creator>ghostdog920</dc:creator>
      <dc:date>2019-05-02T19:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445961#M126541</link>
      <description>&lt;P&gt;remove the quotes you put ahead of plug_out in the rex , copy and paste this &lt;CODE&gt;| makeresults &lt;BR /&gt;
  |eval plug_out="Subject Name: Country: US State/Province: Virginia Locality: Glen Allen" &lt;BR /&gt;
| rex field=plug_out "Country:\s+(?.*?)\s+State\/Province:\s+(?.*?)\s+Locality:\s+(?.*)$"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445961#M126541</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2020-09-30T00:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445962#M126542</link>
      <description>&lt;P&gt;Tried this:&lt;BR /&gt;
index=nessus| makeresults |eval plug_out="Subject Name: Country: US State/Province: Virginia Locality: Glen Allen" | rex field=plug_out "Country:\s+(?.&lt;EM&gt;?)\s+State\/Province:\s+(?.&lt;/EM&gt;?)\s+Locality:\s+(?.*)$"&lt;/P&gt;

&lt;P&gt;And got this:&lt;BR /&gt;
Error in 'rex' command: Encountered the following error while compiling the regex 'Country:\s+(?.&lt;EM&gt;?)\s+State\/Province:\s+(?.&lt;/EM&gt;?)\s+Locality:\s+(?.*)$': Regex: unrecognized character after (? or (?-&lt;BR /&gt;
The search job has failed due to an error. You may be able view the job in the Job Inspector.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:22:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445962#M126542</guid>
      <dc:creator>ghostdog920</dc:creator>
      <dc:date>2020-09-30T00:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445963#M126543</link>
      <description>&lt;P&gt;So sorry, thought i responded back.  I tried this:&lt;/P&gt;

&lt;P&gt;index=nessus| makeresults |eval plug_out="Subject Name: Country: US State/Province: Virginia Locality: Glen Allen" | rex field=plug_out "Country:\s+(?.&lt;EM&gt;?)\s+State\/Province:\s+(?.&lt;/EM&gt;?)\s+Locality:\s+(?.*)$"&lt;/P&gt;

&lt;P&gt;And i got this output:&lt;/P&gt;

&lt;P&gt;Error in 'rex' command: Encountered the following error while compiling the regex 'Country:\s+(?.&lt;EM&gt;?)\s+State\/Province:\s+(?.&lt;/EM&gt;?)\s+Locality:\s+(?.*)$': Regex: unrecognized character after (? or (?-&lt;BR /&gt;
The search job has failed due to an error. You may be able view the job in the Job Inspector.&lt;/P&gt;

&lt;P&gt;Thoughts on where i messed up?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:22:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445963#M126543</guid>
      <dc:creator>ghostdog920</dc:creator>
      <dc:date>2020-09-30T00:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445964#M126544</link>
      <description>&lt;P&gt;this will give you a 1 line sample output , is this what you need but for all lines of your csv?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 19:22:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445964#M126544</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-05-02T19:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445965#M126545</link>
      <description>&lt;P&gt;wait a sec its copying out incorrectly from my splunk browser to here &lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 19:22:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445965#M126545</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-05-02T19:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445966#M126546</link>
      <description>&lt;P&gt;there you go just copy and paste it this one line works...sorry i guess the code copy in the comments was eating out some stuff from the rex&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 19:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445966#M126546</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-05-02T19:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Valued Field Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445967#M126547</link>
      <description>&lt;P&gt;if this works as it should all you need to do is append &lt;CODE&gt;index=nessus|rename "Plugin Output" as plug_out&lt;/CODE&gt; before the rex , remove makeresults &amp;amp; the hard coded eval&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 19:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multi-Valued-Field-Help/m-p/445967#M126547</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-05-02T19:26:31Z</dc:date>
    </item>
  </channel>
</rss>

