<?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 append values from a field to all values of a multivalued field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181579#M52319</link>
    <description>&lt;P&gt;Thank you woodcock. Figured it out myself but thanks for the answer and sorry for the dumb question.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2015 04:59:47 GMT</pubDate>
    <dc:creator>kabiraj</dc:creator>
    <dc:date>2015-06-30T04:59:47Z</dc:date>
    <item>
      <title>How to append values from a field to all values of a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181575#M52315</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;I have a multivalued field. I want to take values from one field and append the same to all the values of a multivalued field. The &lt;STRONG&gt;number&lt;/STRONG&gt; of values present in multivalued field is NOT &lt;STRONG&gt;constant&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;Example: I have a multivalued field as error=0,8000,80001, and so on.&lt;BR /&gt;
( want to append values from a field such as 'TargetBandwidth' to all values like error=0:targetbandwidth, 8000:targetbandwidth, 8001:targetbandwidth, and so on.&lt;/P&gt;

&lt;P&gt;Any ideas on how to do that?&lt;/P&gt;

&lt;P&gt;Tried &lt;CODE&gt;eval error = error+":"+TargetBandwidth&lt;/CODE&gt; but it didn't work. &lt;BR /&gt;
Tried with &lt;CODE&gt;eval error = mvappend(error,TargetBandwidth)&lt;/CODE&gt; but it appends values only to the last value of the mv field like error=0, 8000, 8001, and so on:targetbandwidth.&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2015 09:39:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181575#M52315</guid>
      <dc:creator>kabiraj</dc:creator>
      <dc:date>2015-06-29T09:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to append values from a field to all values of a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181576#M52316</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | mvexpand error | eval error = error . ":" . TargetBandwidth | mvcombine error
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jun 2015 14:34:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181576#M52316</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-29T14:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to append values from a field to all values of a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181577#M52317</link>
      <description>&lt;P&gt;HI kabiraj&lt;BR /&gt;
This search code works well . Try it&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.......|mvexpand error|rex field=error  "(?P&amp;lt;error1&amp;gt;[^\,]+)"|eval error1=error1.":"."TargetBandwidth"|eval error=error1.","|stats  values(error) as error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Look at an example&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/436i26E4DBA5E3CD5A5A/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>Mon, 29 Jun 2015 15:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181577#M52317</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-06-29T15:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to append values from a field to all values of a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181578#M52318</link>
      <description>&lt;P&gt;Thank You guys for replying. Figured it out myself yesterday. Just a simple mvexpand did the trick. Since woodcock replied first so i m gonna accept his answer. Once again sorry for asking such a dumb question.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 04:58:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181578#M52318</guid>
      <dc:creator>kabiraj</dc:creator>
      <dc:date>2015-06-30T04:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to append values from a field to all values of a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181579#M52319</link>
      <description>&lt;P&gt;Thank you woodcock. Figured it out myself but thanks for the answer and sorry for the dumb question.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 04:59:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181579#M52319</guid>
      <dc:creator>kabiraj</dc:creator>
      <dc:date>2015-06-30T04:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to append values from a field to all values of a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181580#M52320</link>
      <description>&lt;P&gt;Thank you chimell. Figured it out yesterday. Only a mvexpand and then mvcombine did the trick. Anyways, sorry for the dumb question.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 05:00:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181580#M52320</guid>
      <dc:creator>kabiraj</dc:creator>
      <dc:date>2015-06-30T05:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to append values from a field to all values of a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181581#M52321</link>
      <description>&lt;P&gt;I'm trying to do something similar, but the whole reason I am is to try and get around the high memory cost of the mvexpand operation. Any other suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 19:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181581#M52321</guid>
      <dc:creator>johnmccash</dc:creator>
      <dc:date>2018-10-16T19:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to append values from a field to all values of a multivalued field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181582#M52322</link>
      <description>&lt;P&gt;@johnmccash please create a new post on this, this question is from 2015 and answered already. I've found very few ways to work around this issue but ask the question in a new post...&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 21:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-values-from-a-field-to-all-values-of-a-multivalued/m-p/181582#M52322</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-10-16T21:55:06Z</dc:date>
    </item>
  </channel>
</rss>

