<?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 How to Push a Value onto a MultiValue field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Push-a-Value-onto-a-MultiValue-field/m-p/148453#M41519</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I would like to be able to push a new value into a multi-valued field, from another field. &lt;/P&gt;

&lt;P&gt;ie.&lt;BR /&gt;
Field1="Derek"&lt;BR /&gt;
mvfield2="Paul" "Dave" "Bill"&lt;/P&gt;

&lt;P&gt;I'd like to be able to do something like mvfield2=mvfield2 + Field1&lt;/P&gt;

&lt;P&gt;It looks like I maybe able to get around it by converting the multivalued field to a delimited string, adding the value of field1, then make a new multivalued field, but that seems a long way around what seems like something simple.&lt;/P&gt;

&lt;P&gt;Does anyone have any better ideas ? &lt;/P&gt;

&lt;P&gt;Thanks for the help&lt;BR /&gt;
Derek&lt;/P&gt;</description>
    <pubDate>Wed, 10 Dec 2014 17:48:15 GMT</pubDate>
    <dc:creator>DerekKing</dc:creator>
    <dc:date>2014-12-10T17:48:15Z</dc:date>
    <item>
      <title>How to Push a Value onto a MultiValue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Push-a-Value-onto-a-MultiValue-field/m-p/148453#M41519</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I would like to be able to push a new value into a multi-valued field, from another field. &lt;/P&gt;

&lt;P&gt;ie.&lt;BR /&gt;
Field1="Derek"&lt;BR /&gt;
mvfield2="Paul" "Dave" "Bill"&lt;/P&gt;

&lt;P&gt;I'd like to be able to do something like mvfield2=mvfield2 + Field1&lt;/P&gt;

&lt;P&gt;It looks like I maybe able to get around it by converting the multivalued field to a delimited string, adding the value of field1, then make a new multivalued field, but that seems a long way around what seems like something simple.&lt;/P&gt;

&lt;P&gt;Does anyone have any better ideas ? &lt;/P&gt;

&lt;P&gt;Thanks for the help&lt;BR /&gt;
Derek&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2014 17:48:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Push-a-Value-onto-a-MultiValue-field/m-p/148453#M41519</guid>
      <dc:creator>DerekKing</dc:creator>
      <dc:date>2014-12-10T17:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Push a Value onto a MultiValue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Push-a-Value-onto-a-MultiValue-field/m-p/148454#M41520</link>
      <description>&lt;P&gt;You can use "mvappend" function with eval to do this in one step.&lt;/P&gt;

&lt;P&gt;runanywhere sample&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval field1="Dave" | eval field2=split("Rob,Bob,John",",") | table field* | eval field3=mvappend(field2,field1)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Dec 2014 19:04:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Push-a-Value-onto-a-MultiValue-field/m-p/148454#M41520</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-12-10T19:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to Push a Value onto a MultiValue field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Push-a-Value-onto-a-MultiValue-field/m-p/148455#M41521</link>
      <description>&lt;P&gt;Thanks - Not sure how I missed that!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2014 19:09:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Push-a-Value-onto-a-MultiValue-field/m-p/148455#M41521</guid>
      <dc:creator>DerekKing</dc:creator>
      <dc:date>2014-12-10T19:09:55Z</dc:date>
    </item>
  </channel>
</rss>

