<?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: RegEx extract multiple values per field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/RegEx-extract-multiple-values-per-field/m-p/151609#M42456</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I think you may have several solutions. I'd like to explain my idea.&lt;/P&gt;

&lt;P&gt;I will change regex configuration.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... (?P&amp;lt;messageid&amp;gt;[0-9A-Z,]+) ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I will add the following search commands after your search command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | makemv delim="," messageid 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The field "messageid" will be multiple value field if it has 2 and more contents.&lt;BR /&gt;&lt;BR /&gt;
And if you add "| mvexpand messageid", you will get 2 events; ABC129, ABC130.&lt;/P&gt;

&lt;P&gt;I hope it helps you.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jul 2014 00:26:59 GMT</pubDate>
    <dc:creator>Suda</dc:creator>
    <dc:date>2014-07-22T00:26:59Z</dc:date>
    <item>
      <title>RegEx extract multiple values per field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-extract-multiple-values-per-field/m-p/151608#M42455</link>
      <description>&lt;P&gt;Hello, &lt;BR /&gt;
I am right now trying to reed Lotus Notes (to be coorect: Domincos console.log-file) Events. One of my problems I have, is the following:&lt;BR /&gt;
(its not connected to Notes especially, but people should know, that at least someone tried it.)&lt;/P&gt;

&lt;P&gt;Sometime I have an ID, but it can occur once, or comma separated twice. What can I do to get this value into two values for one field (I am using the search-time extraction). &lt;BR /&gt;
e.g. &lt;BR /&gt;
...[%Timestamp%] Message ABC123 delivered....&lt;BR /&gt;
...[%Timestamp%] Message ABC129,ABC130 delivered....&lt;/P&gt;

&lt;P&gt;My current RegEx extraction for the field is: &lt;BR /&gt;
... (?P&lt;MESSAGEID&gt;[\dA-Z]+) ...//some other fields exist before and afterwards&lt;/MESSAGEID&gt;&lt;/P&gt;

&lt;P&gt;but how can I make it detect things twice.. ? &lt;/P&gt;

&lt;P&gt;Thanks for your support! &lt;/P&gt;

&lt;P&gt;Regards, &lt;BR /&gt;
Xantor!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2014 22:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-extract-multiple-values-per-field/m-p/151608#M42455</guid>
      <dc:creator>splunkbeginner2</dc:creator>
      <dc:date>2014-07-21T22:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx extract multiple values per field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-extract-multiple-values-per-field/m-p/151609#M42456</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I think you may have several solutions. I'd like to explain my idea.&lt;/P&gt;

&lt;P&gt;I will change regex configuration.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... (?P&amp;lt;messageid&amp;gt;[0-9A-Z,]+) ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I will add the following search commands after your search command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | makemv delim="," messageid 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The field "messageid" will be multiple value field if it has 2 and more contents.&lt;BR /&gt;&lt;BR /&gt;
And if you add "| mvexpand messageid", you will get 2 events; ABC129, ABC130.&lt;/P&gt;

&lt;P&gt;I hope it helps you.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2014 00:26:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-extract-multiple-values-per-field/m-p/151609#M42456</guid>
      <dc:creator>Suda</dc:creator>
      <dc:date>2014-07-22T00:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx extract multiple values per field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-extract-multiple-values-per-field/m-p/151610#M42457</link>
      <description>&lt;P&gt;Hey, that sounds interesting. I'll give it a try. mvexpand does only split the event into two, as soon as I search for it, correct?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2014 00:37:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-extract-multiple-values-per-field/m-p/151610#M42457</guid>
      <dc:creator>splunkbeginner2</dc:creator>
      <dc:date>2014-07-22T00:37:17Z</dc:date>
    </item>
  </channel>
</rss>

