<?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 write the regex and configure transforms.conf to extract multiple values for one field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-and-configure-transforms-conf-to-extract/m-p/129812#M35305</link>
    <description>&lt;P&gt;Thank you, I will test this and get back to you.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Feb 2015 12:46:27 GMT</pubDate>
    <dc:creator>jlhamlet</dc:creator>
    <dc:date>2015-02-04T12:46:27Z</dc:date>
    <item>
      <title>How to write the regex and configure transforms.conf to extract multiple values for one field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-and-configure-transforms-conf-to-extract/m-p/129810#M35303</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am indexing data with events in this format:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Field1:value1|Field1:value2 .....&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;In my transforms.conf i set the regex to :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX =  (?&amp;lt;_KEY_1&amp;gt;[a-zA-Z]+):(?&amp;lt;_VAL_1&amp;gt;[^|]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This only extracts Value1 for Field1 and seems to ignore Value2.&lt;/P&gt;

&lt;P&gt;I am a newbie to regex, can someone help me out here ?&lt;/P&gt;

&lt;P&gt;Note that the IFX (web interface) does not allow me to extract Value2 to Field1.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 11:13:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-and-configure-transforms-conf-to-extract/m-p/129810#M35303</guid>
      <dc:creator>jlhamlet</dc:creator>
      <dc:date>2015-02-04T11:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the regex and configure transforms.conf to extract multiple values for one field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-and-configure-transforms-conf-to-extract/m-p/129811#M35304</link>
      <description>&lt;P&gt;Add "MV_ADD = true" in your transforms.conf. By default Splunk will write results only if the field it's about to write to is empty. When you set MV_ADD to true, Splunk will instead add the new value to the existing field, and make it multivalued.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:49:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-and-configure-transforms-conf-to-extract/m-p/129811#M35304</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2020-09-28T18:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the regex and configure transforms.conf to extract multiple values for one field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-and-configure-transforms-conf-to-extract/m-p/129812#M35305</link>
      <description>&lt;P&gt;Thank you, I will test this and get back to you.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 12:46:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-and-configure-transforms-conf-to-extract/m-p/129812#M35305</guid>
      <dc:creator>jlhamlet</dc:creator>
      <dc:date>2015-02-04T12:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the regex and configure transforms.conf to extract multiple values for one field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-and-configure-transforms-conf-to-extract/m-p/129813#M35306</link>
      <description>&lt;P&gt;Thank You very much for your help. It worked perfectly.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 21:28:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-the-regex-and-configure-transforms-conf-to-extract/m-p/129813#M35306</guid>
      <dc:creator>jlhamlet</dc:creator>
      <dc:date>2015-02-04T21:28:56Z</dc:date>
    </item>
  </channel>
</rss>

