<?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: Field extraction into multivalue field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-into-multivalue-field/m-p/46061#M10995</link>
    <description>&lt;P&gt;If you want multiple values for a single field, you need to use &lt;CODE&gt;MV_ADD&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;PROPS.CONF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
REPORT-mv_ip = xf-mvips
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;TRANSFORMS.CONF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xf-mvips]
REGEX = (?&amp;lt;mv_ip&amp;gt;\d+\.\d+\.\d+\.\d+)
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 17 Feb 2011 09:40:08 GMT</pubDate>
    <dc:creator>Ron_Naken</dc:creator>
    <dc:date>2011-02-17T09:40:08Z</dc:date>
    <item>
      <title>Field extraction into multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-into-multivalue-field/m-p/46060#M10994</link>
      <description>&lt;P&gt;So I want to do a general field extraction of IP addresses for a sourcetype that may have them in multiple places in a given event, and may have multiples of them. Something as simple as an inline field extraction like this:&lt;/P&gt;

&lt;P&gt;EXTRACT-mv_ip = (?\d+.\d+.\d+.\d+)&lt;/P&gt;

&lt;P&gt;However, I'd like &lt;EM&gt;all&lt;/EM&gt; occurrences to be stored in the mv_ip field as a multi value field, and I'd like to be able to use that multi value field in lookups. For some reason, I'm not understanding the documentation on field extractions enough to figure out how to do this. &lt;/P&gt;

&lt;P&gt;Example data:&lt;/P&gt;

&lt;P&gt;src=10.38.10.89 dst=10.188.10.50 src_port=45045 dst_port=53 src-xlated ip=10.38.12.89 port=45045 dst-xlated ip=10.188.12.50 &lt;/P&gt;

&lt;P&gt;How I'd like the mv_ip value to end up:&lt;/P&gt;

&lt;P&gt;mv_ip = 10.38.10.89,10.188.10.50,10.38.12.89,10.188.12.50&lt;/P&gt;

&lt;P&gt;Is this doable? If so, what am I missing?&lt;/P&gt;

&lt;P&gt;thanks,
Steve&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2011 08:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-into-multivalue-field/m-p/46060#M10994</guid>
      <dc:creator>Steve_Litras</dc:creator>
      <dc:date>2011-02-17T08:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction into multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-into-multivalue-field/m-p/46061#M10995</link>
      <description>&lt;P&gt;If you want multiple values for a single field, you need to use &lt;CODE&gt;MV_ADD&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;PROPS.CONF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
REPORT-mv_ip = xf-mvips
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;TRANSFORMS.CONF:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xf-mvips]
REGEX = (?&amp;lt;mv_ip&amp;gt;\d+\.\d+\.\d+\.\d+)
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Feb 2011 09:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-into-multivalue-field/m-p/46061#M10995</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-17T09:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction into multivalue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-into-multivalue-field/m-p/46062#M10996</link>
      <description>&lt;P&gt;Thanks - worked like a charm...&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2011 00:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-into-multivalue-field/m-p/46062#M10996</guid>
      <dc:creator>Steve_Litras</dc:creator>
      <dc:date>2011-02-18T00:38:32Z</dc:date>
    </item>
  </channel>
</rss>

