<?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: Create a variable that combines two string values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-a-variable-that-combines-two-string-values/m-p/367026#M108255</link>
    <description>&lt;P&gt;What do you mean by "union"?  Can you give an example of your fields and desired output?&lt;/P&gt;

&lt;P&gt;Have you looked at the &lt;CODE&gt;mvzip&lt;/CODE&gt; function?&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2017 16:52:10 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2017-08-11T16:52:10Z</dc:date>
    <item>
      <title>Create a variable that combines two string values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-variable-that-combines-two-string-values/m-p/367025#M108254</link>
      <description>&lt;P&gt;I have a simple question: &lt;/P&gt;

&lt;P&gt;I have two variables foo and bar, each containing a set of strings, and I would like to create a new variable foobar which contains the union of  foo and bar. &lt;/P&gt;

&lt;P&gt;I am aware of the | set union command, but I don't seem to get it to work for this scenario.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:38:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-variable-that-combines-two-string-values/m-p/367025#M108254</guid>
      <dc:creator>viggor</dc:creator>
      <dc:date>2017-08-11T15:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a variable that combines two string values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-variable-that-combines-two-string-values/m-p/367026#M108255</link>
      <description>&lt;P&gt;What do you mean by "union"?  Can you give an example of your fields and desired output?&lt;/P&gt;

&lt;P&gt;Have you looked at the &lt;CODE&gt;mvzip&lt;/CODE&gt; function?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 16:52:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-variable-that-combines-two-string-values/m-p/367026#M108255</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-08-11T16:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a variable that combines two string values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-variable-that-combines-two-string-values/m-p/367027#M108256</link>
      <description>&lt;P&gt;Would an eval expression work in this case?&lt;/P&gt;

&lt;P&gt;Example&lt;/P&gt;

&lt;P&gt;search... | eval new_variable=foo. "" .bar&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 16:55:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-variable-that-combines-two-string-values/m-p/367027#M108256</guid>
      <dc:creator>Sarmbrister</dc:creator>
      <dc:date>2017-08-11T16:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create a variable that combines two string values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-variable-that-combines-two-string-values/m-p/367028#M108257</link>
      <description>&lt;P&gt;I believe you need to use mvappend command with mvdedup (to remove duplicates) with eval. If they're not multivalued fields, you have to convert them to mv first. We can suggest more accurate options if you can provide some sample values. &lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 18:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-variable-that-combines-two-string-values/m-p/367028#M108257</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-14T18:44:32Z</dc:date>
    </item>
  </channel>
</rss>

